Skip to content

Commit f777843

Browse files
committed
refactor: use String.replace with global flag instead of .replaceAll
1 parent 321d0e6 commit f777843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/.vitepress/components/FormField.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
const form = typeof props.form === 'function' ? props.form() : ref({});
2525
2626
function toKebabCase(label) {
27-
return label.replaceAll(/([A-Z])/g, '-$1').toLowerCase();
27+
return label.replace(/([A-Z])/g, '-$1').toLowerCase();
2828
}
2929
</script>
3030

0 commit comments

Comments
 (0)