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

Commit

Permalink
fix rte and error found during self check
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffryBooher committed Apr 7, 2014
1 parent 9a5088c commit c96b3df
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
Expand Up @@ -232,7 +232,7 @@ define(function (require, exports, module) {
break;
}
next = this.getToken(cursor);
} while (skipWhitespace && !/\S/.match(next.string));
} while (skipWhitespace && !/\S/.test(next.string));

return next;
};
Expand Down
2 changes: 1 addition & 1 deletion src/language/HTMLUtils.js
Expand Up @@ -153,7 +153,7 @@ define(function (require, exports, module) {
}
// If we type the first letter of the next attribute, it comes as an error
// token. We need to double check for possible invalidated attributes.
if (/\S/.test(forwardCtx.token.string) !== "" &&
if (/\S/.test(forwardCtx.token.string) &&
forwardCtx.token.string.indexOf("\"") === -1 &&
forwardCtx.token.string.indexOf("'") === -1 &&
forwardCtx.token.string.indexOf("=") === -1) {
Expand Down

0 comments on commit c96b3df

Please sign in to comment.