renamed outstanding attribute references to labels

This commit is contained in:
azivner
2018-04-01 09:59:44 -04:00
parent ab2f28ceef
commit c9d73c6115
12 changed files with 71 additions and 73 deletions

View File

@@ -79,11 +79,11 @@ function formatValueWithWhitespace(val) {
return /[^\w_-]/.test(val) ? '"' + val + '"' : val;
}
function formatLabel(attr) {
let str = "@" + formatValueWithWhitespace(attr.name);
function formatLabel(label) {
let str = "@" + formatValueWithWhitespace(label.name);
if (attr.value !== "") {
str += "=" + formatValueWithWhitespace(attr.value);
if (label.value !== "") {
str += "=" + formatValueWithWhitespace(label.value);
}
return str;