Skip to content

Commit

Permalink
required quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Ben-Israel committed Mar 25, 2020
1 parent fa0872d commit 89a447a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@monocdk-experiment/rewrite-imports/lib/rewrite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export function rewriteLine(line: string) {
}
}
return line
.replace(/(["']?)@aws-cdk\/core(["']?)/g, '$1monocdk-experiment$2') // monocdk-experiment => monocdk-experiment
.replace(/(["']?)@aws-cdk\/(.+?)(["']?)/g, '$1monocdk-experiment/$2$3'); // monocdk-experiment/foobar => monocdk-experiment/foobar;
.replace(/(["'])@aws-cdk\/core(["'])/g, '$1monocdk-experiment$2') // monocdk-experiment => monocdk-experiment
.replace(/(["'])@aws-cdk\/(.+)(["'])/g, '$1monocdk-experiment/$2$3'); // monocdk-experiment/foobar => monocdk-experiment/foobar;
}

0 comments on commit 89a447a

Please sign in to comment.