Fixing executable for supporting also /path/file
This commit is contained in:
parent
af32e05dcc
commit
e5fbc10055
1 changed files with 6 additions and 1 deletions
|
@ -404,10 +404,15 @@ function blash ()
|
|||
this.history.push ( this.prompt.value );
|
||||
this.history_index = -1;
|
||||
|
||||
if ( cmd.match ( /^\.\/(.*)$/ ))
|
||||
if ( cmd.match ( /^\.?\/(.*)$/ ))
|
||||
{
|
||||
file = this.expandPath ( RegExp.$1 );
|
||||
|
||||
if ( cmd.match ( /^(\/.*)$/ ))
|
||||
{
|
||||
file = this.expandPath ( RegExp.$1 );
|
||||
}
|
||||
|
||||
for ( var i in this.files )
|
||||
{
|
||||
if ( this.files[i]['path'] == file )
|
||||
|
|
Loading…
Reference in a new issue