Fixing executable for supporting also /path/file

This commit is contained in:
BlackLight 2011-01-08 20:14:22 +01:00
parent af32e05dcc
commit e5fbc10055
1 changed files with 6 additions and 1 deletions

View File

@ -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 )