mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
explorer/fileNameFormGroup: fix fix-it for dash in file name
This commit is contained in:
committed by
David Lechner
parent
fc4cb8eb78
commit
e5ab52b250
@@ -34,7 +34,7 @@ function removeFileExtension(value: string): string {
|
||||
* @returns The fixed up string.
|
||||
*/
|
||||
function replaceInvalidCharacters(value: string): string {
|
||||
return value.trim().replaceAll(/[^A-Za-z0-9-_]+/g, '_');
|
||||
return value.trim().replaceAll(/[^A-Za-z0-9_]+/g, '_');
|
||||
}
|
||||
|
||||
type FixItButtonProps = Pick<AriaButtonProps<'a'>, 'onPress'>;
|
||||
|
||||
Reference in New Issue
Block a user