From a29d88766b0290b1d8721815630ed9869e87afa6 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 31 May 2017 11:21:28 -0700 Subject: [PATCH] Fix parsing for argument whitespace. Fixes #4643. --- lib/mixins/property-effects.html | 2 +- test/unit/property-effects-elements.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mixins/property-effects.html b/lib/mixins/property-effects.html index 9dc5d3273e..2401f704fb 100644 --- a/lib/mixins/property-effects.html +++ b/lib/mixins/property-effects.html @@ -782,7 +782,7 @@ const SQUOTE_STRING = '(?:' + '\'(?:[^\'\\\\]|\\\\.)*\'' + ')'; const DQUOTE_STRING = '(?:' + '"(?:[^"\\\\]|\\\\.)*"' + ')'; const STRING = '(?:' + SQUOTE_STRING + '|' + DQUOTE_STRING + ')'; - const ARGUMENT = '(?:' + IDENT + '|' + NUMBER + '|' + STRING + '\\s*' + ')'; + const ARGUMENT = '(?:(' + IDENT + '|' + NUMBER + '|' + STRING + ')\\s*' + ')'; const ARGUMENTS = '(?:' + ARGUMENT + '(?:,\\s*' + ARGUMENT + ')*' + ')'; const ARGUMENT_LIST = '(?:' + '\\(\\s*' + '(?:' + ARGUMENTS + '?' + ')' + diff --git a/test/unit/property-effects-elements.html b/test/unit/property-effects-elements.html index 0d9853cde0..2cb36bbd44 100644 --- a/test/unit/property-effects-elements.html +++ b/test/unit/property-effects-elements.html @@ -20,7 +20,7 @@ computed-inline="{{computeInline(value,add, divide)}}" computed-inline2="{{computeInline(value, add,divide)}}" computed-inline3="{{computeInline(value, add, - divide)}}" + divide )}}" computedattribute$="{{computeInline(value, add,divide)}}" computedattribute2$="{{computeInline( value, add, divide)}}"