diff --git a/src/compiler/parser/text-parser.js b/src/compiler/parser/text-parser.js index 34f1e018e9d..10613d11e0c 100644 --- a/src/compiler/parser/text-parser.js +++ b/src/compiler/parser/text-parser.js @@ -4,7 +4,7 @@ import { cached } from 'shared/util' import { parseFilters } from './filter-parser' const defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g -const regexEscapeRE = /[-.*+?^${}()|[\]/\\]/g +const regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g const buildRegex = cached(delimiters => { const open = delimiters[0].replace(regexEscapeRE, '\\$&')