Skip to content

Commit e259fc3

Browse files
arielpcharayyx990803
authored andcommitted
* fiz regular expression * fix regular expression
1 parent a0c37a9 commit e259fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/compiler/parser/text-parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { cached } from 'shared/util'
44
import { parseFilters } from './filter-parser'
55

66
const defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g
7-
const regexEscapeRE = /[-.*+?^${}()|[\]/\\]/g
7+
const regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g
88

99
const buildRegex = cached(delimiters => {
1010
const open = delimiters[0].replace(regexEscapeRE, '\\$&')

0 commit comments

Comments
 (0)