From b28ee382236e71ca451ef6207e914a469fe1c739 Mon Sep 17 00:00:00 2001 From: Park June Chul Date: Tue, 18 Oct 2022 15:21:49 +0900 Subject: [PATCH] fix: iOS hermes detection --- src/commands/codepush/lib/react-native-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/codepush/lib/react-native-utils.ts b/src/commands/codepush/lib/react-native-utils.ts index 51991f81e..9e1d88a5b 100644 --- a/src/commands/codepush/lib/react-native-utils.ts +++ b/src/commands/codepush/lib/react-native-utils.ts @@ -501,7 +501,7 @@ export function getiOSHermesEnabled(podFile: string): boolean { try { const podFileContents = fs.readFileSync(podPath).toString(); - return /^([^#\n]*:?hermes_enabled(\s+|\n+)?(=>|:)(\s+|\n+)?true)$/.test(podFileContents); + return /([^#\n]*:?hermes_enabled(\s+|\n+)?(=>|:)(\s+|\n+)?true)/.test(podFileContents); } catch (error) { throw error; }