Skip to content

Commit

Permalink
fix(rename): #57 -- allow foreign language character rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcrites committed Nov 1, 2018
1 parent 51045df commit fb0445d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ readFile(path.join(__dirname, 'android/app/src/main/res/values/strings.xml'))
.option('-b, --bundleID [value]', 'Set custom bundle identifier eg. "com.junedomingo.travelapp"')
.action(newName => {
const nS_NewName = newName.replace(/\s/g, '');
const pattern = /^([0-9]|[a-z])+([0-9a-z\s]+)$/i;
const pattern = new RegExp('^([\\p{Letter}\\p{Number}])+([\\p{Letter}\\p{Number}\\s]+)$', 'u');
const lC_Ns_NewAppName = nS_NewName.toLowerCase();
const bundleID = program.bundleID ? program.bundleID.toLowerCase() : null;
let newBundlePath;
Expand Down

0 comments on commit fb0445d

Please sign in to comment.