superblocks-lab icon indicating copy to clipboard operation
superblocks-lab copied to clipboard

Consider supporting non-latin and accented characters for project and file names

Open filippsen opened this issue 6 years ago • 1 comments

Summary

Project and file names are currently limited to non-accented, latin characters.

Motivation

Support accented characters and other alphabets: French, German, Swedish, etc.

filippsen avatar Sep 10 '18 15:09 filippsen

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

filippsen avatar Jan 30 '19 13:01 filippsen