|
|
@@ -39,7 +39,7 @@ export class CustomVariable implements Variable {
|
|
|
|
|
|
updateOptions() {
|
|
|
// extract options in comma separated string (use backslash to escape wanted commas)
|
|
|
- this.options = _.map(this.query.split(/(?<!\\),+/), text => {
|
|
|
+ this.options = _.map(this.query.match(/(?:\\,|[^,])+/g), text => {
|
|
|
text = text.replace('\\,', ',');
|
|
|
return { text: text.trim(), value: text.trim() };
|
|
|
});
|