From 2777da518e714cfd006391ffb845f1f4175af2b8 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 19 Apr 2015 16:45:06 -0400 Subject: [PATCH] Replacing an array join with a JS template --- src/js/parser/javascript/charset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/parser/javascript/charset.js b/src/js/parser/javascript/charset.js index 35192eb..4eae481 100644 --- a/src/js/parser/javascript/charset.js +++ b/src/js/parser/javascript/charset.js @@ -35,7 +35,7 @@ export default { setup() { this.label = (this.properties.invert.textValue === '^') ? 'None of:' : 'One of:'; this.elements = _.unique(this.properties.parts.elements, part => { - return [part.type, part.textValue].join(':'); + return `${part.type}:${part.textValue}`; }); if (this.textValue.match(/\\c[^a-zA-Z]/)) {