correct quoting rules for attribute/status bar

This commit is contained in:
azivner 2018-02-05 22:28:12 -05:00
parent f380bb7f65
commit 214d2e7659

View File

@ -121,7 +121,7 @@ function executeScript(script) {
} }
function formatValueWithWhitespace(val) { function formatValueWithWhitespace(val) {
return /\s/.test(val) ? '"' + val + '"' : val; return /[^\w_-]/.test(val) ? '"' + val + '"' : val;
} }
function formatAttribute(attr) { function formatAttribute(attr) {