Skip to content

Commit

Permalink
Update browser.html
Browse files Browse the repository at this point in the history
  • Loading branch information
underpig1 committed Aug 7, 2020
1 parent c848f8b commit 32405fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/browser/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h3>NEURON</h3>
var text = code.innerHTML;
var matches = [];
for (var i in grammers.patterns) {
var re = grammers.patterns[i].match;
var re = new RegExp(grammers.patterns[i].match, "g");
var str = code.innerHTML;
while ((match = re.exec(str)) != null) {
matches.push([match.index, re.lastIndex, grammers.patterns[i].name]);
Expand Down

0 comments on commit 32405fa

Please sign in to comment.