Restrict allowed variable symbols & reserved words
Open
justsml
opened this issue 3 years ago
•
0 comments
For all variable/token names:
[ ] Prevent any special symbols or operators in names.
[ ] Opt 1: Filtering ~``!@#$%^&*()-_=+{}|[]\;:'<>?,./ - exclusionary approach can allow strange edge cases and must account for the endless strangeness of Unicode special symbols.
[ ] Opt 2: Must match ^[a-zA-Z0-9\.\-_]+$ - restricted can limit use cases, but much safer.