Skip to content

Commit 8df60b5

Browse files
authored
Fix default binding name logic to replace all dashes with underscores (#8720)
Fix #8719
1 parent 5fc7fe6 commit 8df60b5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Fix logic to derive resource name from binding by replacing all underscores with dashes

packages/wrangler/src/deployment-bundle/bindings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ async function runProvisioningFlow(
473473
});
474474
}
475475

476-
const defaultName = `${scriptName}-${item.binding.toLowerCase().replace("_", "-")}`;
476+
const defaultName = `${scriptName}-${item.binding.toLowerCase().replaceAll("_", "-")}`;
477477
logger.log("Provisioning", item.binding, `(${friendlyBindingName})...`);
478478

479479
if (item.handler.name) {

0 commit comments

Comments
 (0)