Skip to content

Commit df957f8

Browse files
authored
fix: pod install with missing 'm' regex flag (#242)
* fix: pod install with missing 'm' regex flag * changeset
1 parent 51e7029 commit df957f8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rnef/platform-apple-helpers': patch
3+
---
4+
5+
fix: pod install with missing 'm' regex flag

packages/platform-apple-helpers/src/lib/utils/pods.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function checkGemfileForCocoaPods(gemfilePath: string): boolean {
216216
try {
217217
const gemfileContent = fs.readFileSync(gemfilePath, 'utf-8');
218218
// Check for common CocoaPods gem declarations, because some projects might have Gemfile but for other purposes
219-
return /^\s*gem\s+['"]cocoapods['"]/.test(gemfileContent);
219+
return /^\s*gem\s+['"]cocoapods['"]/m.test(gemfileContent);
220220
} catch (error) {
221221
logger.debug(`Failed to read Gemfile at: ${gemfilePath}`);
222222
logger.debug(error);

0 commit comments

Comments
 (0)