mirror of https://github.com/rancher/dashboard.git
fix sheelinput string parsing regex
This commit is contained in:
parent
a4c0da3160
commit
1a897ce1b0
|
|
@ -42,9 +42,8 @@ export default {
|
||||||
let out = null;
|
let out = null;
|
||||||
|
|
||||||
if ( userValue ) {
|
if ( userValue ) {
|
||||||
out = userValue.match(/(\"[^\"]+\")|\S+/g).map(string => string.replace(/^"|"$/g, ''));
|
out = userValue.match(/('[^']+')|("[^"]+")|\S+/g).map(string => string.replace(/^'|'$|^"|"$/g, ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit('input', out);
|
this.$emit('input', out);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue