@@ -69,7 +69,7 @@ describe("EmbeddedLinuxCodeBuildProjectStack", () => {
6969 Match . objectLike ( {
7070 CidrIp : {
7171 "Fn::ImportValue" : Match . stringLikeRegexp (
72- `${ common . stackName } :ExportsOutputFnGetAtt${ props . vpc . node . id . replaceAll ( "-" , "" ) } *` ,
72+ `${ common . stackName } :ExportsOutputFnGetAtt${ props . vpc . node . id . replace ( / - / g , "" ) } *` ,
7373 ) ,
7474 } ,
7575 FromPort : 2049 ,
@@ -96,7 +96,7 @@ describe("EmbeddedLinuxCodeBuildProjectStack", () => {
9696 ":" ,
9797 {
9898 "Fn::ImportValue" : Match . stringLikeRegexp (
99- `${ common . stackName } :ExportsOutputFnGetAtt${ props . ecrRepository . node . id . replaceAll ( "-" , "" ) } ` ,
99+ `${ common . stackName } :ExportsOutputFnGetAtt${ props . ecrRepository . node . id . replace ( / - / g , "" ) } ` ,
100100 ) ,
101101 } ,
102102 ] ,
@@ -112,7 +112,7 @@ describe("EmbeddedLinuxCodeBuildProjectStack", () => {
112112 ":" ,
113113 {
114114 "Fn::ImportValue" : Match . stringLikeRegexp (
115- `${ common . stackName } :ExportsOutputFnGetAtt${ props . ecrRepository . node . id . replaceAll ( "-" , "" ) } ` ,
115+ `${ common . stackName } :ExportsOutputFnGetAtt${ props . ecrRepository . node . id . replace ( / - / g , "" ) } ` ,
116116 ) ,
117117 } ,
118118 ] ,
@@ -126,7 +126,7 @@ describe("EmbeddedLinuxCodeBuildProjectStack", () => {
126126 "/" ,
127127 {
128128 "Fn::ImportValue" : Match . stringLikeRegexp (
129- `${ common . stackName } :ExportsOutputRef${ props . ecrRepository . node . id . replaceAll ( "-" , "" ) } ` ,
129+ `${ common . stackName } :ExportsOutputRef${ props . ecrRepository . node . id . replace ( / - / g , "" ) } ` ,
130130 ) ,
131131 } ,
132132 ":latest" ,
@@ -263,7 +263,7 @@ describe("EmbeddedLinuxCodeBuildProjectStack Custom", () => {
263263 Match . objectLike ( {
264264 CidrIp : {
265265 "Fn::ImportValue" : Match . stringLikeRegexp (
266- `${ common . stackName } :ExportsOutputFnGetAtt${ props . vpc . node . id . replaceAll ( "-" , "" ) } *` ,
266+ `${ common . stackName } :ExportsOutputFnGetAtt${ props . vpc . node . id . replace ( / - / g , "" ) } *` ,
267267 ) ,
268268 } ,
269269 FromPort : 2049 ,
@@ -290,7 +290,7 @@ describe("EmbeddedLinuxCodeBuildProjectStack Custom", () => {
290290 ":" ,
291291 {
292292 "Fn::ImportValue" : Match . stringLikeRegexp (
293- `${ common . stackName } :ExportsOutputFnGetAtt${ props . ecrRepository . node . id . replaceAll ( "-" , "" ) } ` ,
293+ `${ common . stackName } :ExportsOutputFnGetAtt${ props . ecrRepository . node . id . replace ( / - / g , "" ) } ` ,
294294 ) ,
295295 } ,
296296 ] ,
@@ -306,7 +306,7 @@ describe("EmbeddedLinuxCodeBuildProjectStack Custom", () => {
306306 ":" ,
307307 {
308308 "Fn::ImportValue" : Match . stringLikeRegexp (
309- `${ common . stackName } :ExportsOutputFnGetAtt${ props . ecrRepository . node . id . replaceAll ( "-" , "" ) } ` ,
309+ `${ common . stackName } :ExportsOutputFnGetAtt${ props . ecrRepository . node . id . replace ( / - / g , "" ) } ` ,
310310 ) ,
311311 } ,
312312 ] ,
@@ -320,7 +320,7 @@ describe("EmbeddedLinuxCodeBuildProjectStack Custom", () => {
320320 "/" ,
321321 {
322322 "Fn::ImportValue" : Match . stringLikeRegexp (
323- `${ common . stackName } :ExportsOutputRef${ props . ecrRepository . node . id . replaceAll ( "-" , "" ) } ` ,
323+ `${ common . stackName } :ExportsOutputRef${ props . ecrRepository . node . id . replace ( / - / g , "" ) } ` ,
324324 ) ,
325325 } ,
326326 ":latest" ,
0 commit comments