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

Commit 9a5088c

Browse files
committed
found a few more...
1 parent b4e0dad commit 9a5088c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/extensions/default/JavaScriptCodeHints/Session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ define(function (require, exports, module) {
232232
break;
233233
}
234234
next = this.getToken(cursor);
235-
} while (skipWhitespace && next.string.trim() === "");
235+
} while (skipWhitespace && !/\S/.match(next.string));
236236

237237
return next;
238238
};

src/extensions/samples/InlineImageViewer/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ define(function (require, exports, module) {
4747

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

0 commit comments

Comments
 (0)