We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601eba8 commit 5db7919Copy full SHA for 5db7919
packages/host/app/components/operator-mode/create-file-modal.gts
@@ -725,7 +725,10 @@ export class ${className} extends ${exportName} {
725
}
726
727
function convertToClassName(input) {
728
+ // \p{L}: a letter
729
let invalidLeadingCharactersRemoved = input.replace(/^[^\p{L}_$]+/u, '');
730
+
731
+ // \p{N}: a number
732
let invalidCharactersRemoved = invalidLeadingCharactersRemoved.replace(
733
/[^\p{L}\p{N}_$]+/gu,
734
'',
0 commit comments