Commit c5e97ebf authored by Simon Knox's avatar Simon Knox

strip trailing quote from locked labels

parent 5646190a
...@@ -152,7 +152,7 @@ class DropdownUtils { ...@@ -152,7 +152,7 @@ class DropdownUtils {
let tokenValue = visualToken && visualToken.querySelector('.value') && visualToken.querySelector('.value').textContent.trim(); let tokenValue = visualToken && visualToken.querySelector('.value') && visualToken.querySelector('.value').textContent.trim();
if (tokenName === 'label' && tokenValue) { if (tokenName === 'label' && tokenValue) {
// remove leading symbol and wrapping quotes // remove leading symbol and wrapping quotes
tokenValue = tokenValue.replace(/^~("|')?(.*)("|')?$/, '$2'); tokenValue = tokenValue.replace(/^~("|')?(.*)/, '$2').replace(/("|')$/, '');
} }
return { tokenName, tokenValue }; return { tokenName, tokenValue };
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment