From a669f8d2c495dfaa13223ac531ef5acf79deb4ed Mon Sep 17 00:00:00 2001 From: June Domingo Date: Thu, 5 Jan 2023 22:12:56 +0800 Subject: [PATCH] Just use .replace and regex --- src/paths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paths.js b/src/paths.js index dc2e76f..4c6172d 100644 --- a/src/paths.js +++ b/src/paths.js @@ -289,7 +289,7 @@ export const getOtherUpdateFilesContentOptions = ({ newAndroidBundleID, newIosBundleID, }) => { - const cleanNewPathContentStr = newPathContentStr.replaceAll(' ', '').toLowerCase(); + const cleanNewPathContentStr = newPathContentStr.replace(/\s/g, '').toLowerCase(); return [ {