Skip to content

Commit

Permalink
fix: regexp must escape parens and periods
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Jan 15, 2025
1 parent 7ac1aa5 commit e4669d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions release/core/publish/steps/generate-mirror-tarballs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ export async function generateMirrorTarballs(
newContents = newContents.replace(new RegExp(`'WarpDrive'`, 'g'), `'WarpDriveMirror'`);
}

newContents = newContents.replace(
new RegExp('getGlobalConfig().WarpDrive', 'g'),
'getGlobalConfig().WarpDriveMirror'
);
newContents = newContents.replace(/getGlobalConfig\(\)\.WarpDrive\./g, 'getGlobalConfig().WarpDriveMirror.');
newContents = newContents.replace(new RegExp(`'@ember-data/'`, 'g'), `'@ember-data-mirror/'`);
newContents = newContents.replace(new RegExp(`"@ember-data/"`, 'g'), `"@ember-data-mirror/"`);

Expand Down

0 comments on commit e4669d5

Please sign in to comment.