Skip to content

Commit

Permalink
Consider input pattern to be multiline
Browse files Browse the repository at this point in the history
So `^` and `$` work as expected.
  • Loading branch information
myersjustinc committed Jan 30, 2020
1 parent 148672a commit 7651238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/Tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Tester.prototype.findMatches = function findMatches() {
this.clearError();

try {
pattern = new RegExp(this.patternField.value, 'g');
pattern = new RegExp(this.patternField.value, 'gm');
}
catch (e) {
this.error(this.formatRegExpError(e));
Expand Down

0 comments on commit 7651238

Please sign in to comment.