Skip to content

Commit

Permalink
Fixed build error when app has short name.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehtissot committed Jun 8, 2020
1 parent 227537d commit 520c974
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"semi": true,
"singleQuote": false,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"tabWidth": 2,
"tabWidth": 4,
}
2 changes: 1 addition & 1 deletion scripts/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '>(.*?)</' + name + '>', 'i'));
var value = config.match(new RegExp('<' + name + '[^>]*>(.*?)</' + name + '>', 'i'));
if (value && value[1]) {
return value[1];
} else {
Expand Down

0 comments on commit 520c974

Please sign in to comment.