From 477fdb2cf2974bb214c811a8c1efa3851b798608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Thu, 9 Feb 2017 20:27:45 +0100 Subject: [PATCH] Template broken after remove semicolons action (#2991) --- template.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/template.js b/template.js index abede1bcb..75aac6a1a 100644 --- a/template.js +++ b/template.js @@ -10,9 +10,9 @@ import templateSettings from './templateSettings.js' import toString from './toString.js' /** Used to match empty string literals in compiled template source. */ -const reEmptyStringLeading = /\b__p \+= ''g +const reEmptyStringLeading = /\b__p \+= '';/g const reEmptyStringMiddle = /\b(__p \+=) '' \+/g -const reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n''g +const reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g /** * Used to match @@ -81,7 +81,7 @@ const stringEscapes = { * // Use the HTML "escape" delimiter to escape data property values. * let compiled = template('<%- value %>') * compiled({ 'value': '