Skip to content

Commit d15a6da

Browse files
Fatmerosen-vladimirov
authored andcommitted
chore: fix regexp
1 parent 7e1f418 commit d15a6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/cocoapods-platform-manager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class CocoaPodsPlatformManager implements ICocoaPodsPlatformManager {
2626
const allPodfiles = projectPodfileContent.match(podfileContentRegExp) || [];
2727
const selectedPlatformData = this.selectPlatformDataFromProjectPodfile(allPodfiles);
2828
const newPlatformSection = selectedPlatformData ? this.buildPlatformSection(selectedPlatformData) : "";
29-
const regExp = new RegExp(`${EOL}${platformSectionData.platformSectionContent}${EOL}`, "mg");
29+
const regExp = new RegExp(`${platformSectionData.platformSectionContent}`, "mg");
3030
projectPodfileContent = projectPodfileContent.replace(regExp, newPlatformSection);
3131
}
3232

0 commit comments

Comments
 (0)