explorer/fileNameFormGroup: fix fix-it for dash in file name

This commit is contained in:
David Lechner
2022-10-19 18:26:37 -05:00
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'>;