Skip to content

Commit

Permalink
fix: don't use replaceAll since it's not supported in ES2015
Browse files Browse the repository at this point in the history
  • Loading branch information
alharris-at committed Feb 25, 2022
1 parent 278143f commit eb3f04e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ export function addBindingPropertiesImports(
// Scrub all non-alphanum characters, and any leading numbers so we can generate a legal
// variable name.
export function sanitizeName(componentName: string): string {
return componentName.replaceAll(/[^a-zA-Z0-9]/g, '').replace(/^[0-9]*/, '');
return componentName.replace(/[^a-zA-Z0-9]/g, '').replace(/^[0-9]*/, '');
}

export function getStateName(stateReference: StateStudioComponentProperty): string {
Expand Down

0 comments on commit eb3f04e

Please sign in to comment.