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

Commit c96b3df

Browse files
committed
fix rte and error found during self check
1 parent 9a5088c commit c96b3df

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 && !/\S/.match(next.string));
235+
} while (skipWhitespace && !/\S/.test(next.string));
236236

237237
return next;
238238
};

src/language/HTMLUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ define(function (require, exports, module) {
153153
}
154154
// If we type the first letter of the next attribute, it comes as an error
155155
// token. We need to double check for possible invalidated attributes.
156-
if (/\S/.test(forwardCtx.token.string) !== "" &&
156+
if (/\S/.test(forwardCtx.token.string) &&
157157
forwardCtx.token.string.indexOf("\"") === -1 &&
158158
forwardCtx.token.string.indexOf("'") === -1 &&
159159
forwardCtx.token.string.indexOf("=") === -1) {

0 commit comments

Comments
 (0)