Explorar o código

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

Evan You %!s(int64=9) %!d(string=hai) anos
pai
achega
3fa4076d05
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 => {