Replacing an array join with a JS template

This commit is contained in:
Jeff Avallone 2015-04-19 16:45:06 -04:00
parent 1ef8bd7500
commit 2777da518e

View File

@ -35,7 +35,7 @@ export default {
setup() { setup() {
this.label = (this.properties.invert.textValue === '^') ? 'None of:' : 'One of:'; this.label = (this.properties.invert.textValue === '^') ? 'None of:' : 'One of:';
this.elements = _.unique(this.properties.parts.elements, part => { 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]/)) { if (this.textValue.match(/\\c[^a-zA-Z]/)) {