superblocks-lab
superblocks-lab copied to clipboard
Consider supporting non-latin and accented characters for project and file names
Summary
Project and file names are currently limited to non-accented, latin characters.
Motivation
Support accented characters and other alphabets: French, German, Swedish, etc.
The base name validation is done by the following expression: [a-zA-Z0-9-_.]
.
Adding support to accented characters could be done by changing it to: [A-zØ-öø-ÿÀ-Ö0-9-_.]
.
For extended support, it would probably be better to take advantage of direct codes and express it in terms of ranges, instead.
Other areas where changing the validation could also be considered are:
- contract target name
- account name
Changing the text matching code would touch the following components:
File names
-
Control
-
FileItem
-
ImportFileModal
Project name
-
ProjectDetails
-
ProjectDialog
-
ProjecSettings
Contract name
-
ContractEditor
Account name
-
AccountEditor