Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change
.
to [^]
because /s
isn't well supported in JS
The `s` flag on the RegExp object informs the engine to treat a dot character as a class that includes the newline character. Without it newlines aren't considered in the dot. Since this flag is new to Javascript and not well supported in different browsers I have removed it in favor of an explicit class of characters that _does_ include the newline, namely the open exclusion of `[^]` which permits all input characters. Hat-top to @Hywan for finding this.
- Loading branch information