-
Notifications
You must be signed in to change notification settings - Fork 48
Implement robust string normalization #577
Copy link
Copy link
Closed
Labels
Description
Fields should support these normalization options:
- normalize
NL(\n,\r\n,\rto\n- currently done always without option to set it on/off) - replace NL to space
' ' - replace all white chars (
\sin regex exceptNL) to single space' ' - remove all leading and trailing white chars
- remove all trailing white chars in each string line
- allow to exclude tabs (
\t) from white chars
Used should have full control over all of these options and their combinations using one field property like normalizeText.
For non-binary fields all of these options except rule 2. and 6. should be on by default. In atk4/ui is makes sense to turn rule 2. and 6. on too for all fields except textarea.
Feedback and help with the implementation welcomed.
Reactions are currently unavailable