Skip to content

Commit

Permalink
fix replace
Browse files Browse the repository at this point in the history
  • Loading branch information
grommir committed Jul 18, 2024
1 parent d608319 commit 29ad168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rds-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class rdsInstance extends cdk.Stack {
const subnets: any[] = [];

for (let subnetId of props.subnetIds!) {
const subid = subnetId.replace("_", "").replace(" ", "");
const subid = subnetId.replace(/_/g, "").replace(/ /g, "");
subnets.push(
ec2.Subnet.fromSubnetAttributes(this, subid, {
subnetId: subid,
Expand Down

0 comments on commit 29ad168

Please sign in to comment.