Преглед изворни кода

fix text parser regex for multiline tags (fix #3526)

Evan You пре 9 година
родитељ
комит
3fa4076d05
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/compiler/parser/text-parser.js

+ 1 - 1
src/compiler/parser/text-parser.js

@@ -3,7 +3,7 @@
 import { cached } from 'shared/util'
 import { parseFilters } from './filter-parser'
 
-const defaultTagRE = /\{\{((?:.|\\n)+?)\}\}/g
+const defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g
 const regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g
 
 const buildRegex = cached(delimiters => {