Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
found a few more...
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffryBooher committed Apr 7, 2014
1 parent b4e0dad commit 9a5088c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extensions/default/JavaScriptCodeHints/Session.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ define(function (require, exports, module) {
break;
}
next = this.getToken(cursor);
} while (skipWhitespace && next.string.trim() === "");
} while (skipWhitespace && !/\S/.match(next.string));

return next;
};
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/samples/InlineImageViewer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ define(function (require, exports, module) {

// If the pos is at the beginning of a name, token will be the
// preceding whitespace or dot. In that case, try the next pos.
if (token.string.trim().length === 0 || token.string === ".") {
if (!/\S/.match(token.string) || token.string === ".") {
token = hostEditor._codeMirror.getTokenAt({line: pos.line, ch: pos.ch + 1}, true);
}

Expand Down

0 comments on commit 9a5088c

Please sign in to comment.