diff --git a/.prettierrc b/.prettierrc index 169e7c48e..de023c2ae 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,7 +1,7 @@ { "semi": true, - "singleQuote": false, + "singleQuote": true, "trailingComma": "none", "printWidth": 100, - "tabWidth": 2, + "tabWidth": 4, } diff --git a/scripts/helpers.js b/scripts/helpers.js index c5d04f2c1..7afc6a0bc 100644 --- a/scripts/helpers.js +++ b/scripts/helpers.js @@ -40,7 +40,7 @@ exports.logWarning = function (message) { exports.getValueFromXml = function (xmlFilePath, name, errorMessage) { var config = fs.readFileSync(xmlFilePath).toString(); - var value = config.match(new RegExp('<' + name + '>(.*?)', 'i')); + var value = config.match(new RegExp('<' + name + '[^>]*>(.*?)', 'i')); if (value && value[1]) { return value[1]; } else {