Skip to content

Commit 8f42af2

Browse files
jbaicoianumarijnh
authored andcommitted
Fixed escaping in double-quote regex string
1 parent 64b0dae commit 8f42af2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mode/htmlmixed/htmlmixed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
}
5151

5252
function getTagRegexp(tagName, anchored) {
53-
return new RegExp((anchored ? "^" : "") + "<\/\s*" + tagName + "\s*>", "i");
53+
return new RegExp((anchored ? "^" : "") + "<\/\\s*" + tagName + "\\s*>", "i");
5454
}
5555

5656
function addTags(from, to) {

0 commit comments

Comments
 (0)