Skip to content

Commit ded2ad3

Browse files
authored
fix: codegen for clients with long names (#779)
Fixes: #778
1 parent 3556224 commit ded2ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/generate-clients/copy-to-clients.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const getOverwritablePredicate = packageName => pathName => {
2020
packageName
2121
.toLowerCase()
2222
.replace("@aws-sdk/client-", "")
23-
.replace("-", "")
23+
.replace(/-/g, "")
2424
) >= 0 || overwritablePathnames.indexOf(pathName) >= 0
2525
);
2626
};

0 commit comments

Comments
 (0)