From 162156f3a3214d2c13c6aae8e8c5d1d7685c497f Mon Sep 17 00:00:00 2001 From: Alex Orekhov Date: Thu, 28 Jun 2018 12:51:22 +0300 Subject: [PATCH] Fix redundant quote in ParseError argument --- src/expandShorthandProperty.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expandShorthandProperty.js b/src/expandShorthandProperty.js index 3946a89..0f84a3d 100644 --- a/src/expandShorthandProperty.js +++ b/src/expandShorthandProperty.js @@ -98,7 +98,7 @@ module.exports = function expandShorthandProperty(propertyName, try { parser = new nearley.Parser(nearley.Grammar.fromCompiled(grammar)).feed(formattedPropertyValue); } catch (parseError) { - throw new ParseError(`'Error parsing shorthand property ${propertyName}: ${propertyValue}. ${parseError.message}`); + throw new ParseError(`Error parsing shorthand property ${propertyName}: ${propertyValue}. ${parseError.message}`); } // get the first parsing and use the formatter for the specific shorthand type for this property