-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Accept new RegExp flag introduced by ES6
ECMAScript 6 introduces the "u" flag for regular expressions. Extend the lexer to accept this when linting ES6 code. Existing code attempts to compile regular expression literals as a mechanism to ensure validity. Update this code to ignore regular expression flags in order to ensure consistent behavior when JSHint is executed in ES5 and ES6 environments.
- Loading branch information
1 parent
3386b74
commit 26b9e53
Showing
4 changed files
with
409 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.