Skip to content

Commit f1482e3

Browse files
janechuCopilot
andcommitted
refactor(fast-html): use replaceAll string instead of regex in removeDashes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5a6623c commit f1482e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fast-html/src/components/attribute-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ export class AttributeMap {
8989
* e.g. foo-bar → foobar
9090
*/
9191
private removeDashes(str: string): string {
92-
return str.replace(/-/g, "");
92+
return str.replaceAll("-", "");
9393
}
9494
}

0 commit comments

Comments
 (0)