diff --git a/scripts/postlink/ios/postlink.js b/scripts/postlink/ios/postlink.js index 7326efc..c49bcea 100644 --- a/scripts/postlink/ios/postlink.js +++ b/scripts/postlink/ios/postlink.js @@ -31,7 +31,7 @@ if (~appDelegateContents.indexOf(codePushHeaderImportStatement)) { } // 2. Modify jsCodeLocation value assignment -var oldJsCodeLocationAssignmentStatement = appDelegateContents.match(/(jsCodeLocation = .*)\n/)[1]; +var oldJsCodeLocationAssignmentStatement = appDelegateContents.match(/(jsCodeLocation = .*)/)[1]; var newJsCodeLocationAssignmentStatement = "jsCodeLocation = [CodePush bundleURL];"; if (~appDelegateContents.indexOf(newJsCodeLocationAssignmentStatement)) { console.log(`"jsCodeLocation" already pointing to "[CodePush bundleURL]".`);