Skip to content

Commit

Permalink
Make filePathCompleter work with load "filepath without parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilius committed Oct 28, 2017
1 parent 939cc97 commit 2bcc0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ae_console/features/feature_autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ requirejs(['app', 'bridge', 'translate', 'ace/ace', 'get_current_tokens'], funct
while (true) {
currentToken = tokenIterator.stepBackward();
if (currentToken == null) return [];
if (currentToken.value[0] == '"' || currentToken.value[0] == "'") {
fullPrefix = currentToken.value.substring(1) + fullPrefix;
if (currentToken.value.match(/^\s*?["']/)) {
fullPrefix = currentToken.value.substring(RegExp.$_.length) + fullPrefix;
break;
}
fullPrefix = currentToken.value + fullPrefix;
Expand Down

0 comments on commit 2bcc0fd

Please sign in to comment.