Closed nikorev closed 11 months ago
Should I strip all newline characters for now, or in the future will the UI prevent users from creating new lines (i.e. hitting enter) inside of single-line text fields?
No. For now, simply trim trailing and leading whitespace. In the future, users won't be able to use the enter key on fields flagged as single line.
Was missing one trim call. Marking branch as ready:
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
1 Code Smell
No Coverage information
0.0% Duplication
Currently trims leading and trailing whitespace via .trim(). I see there is a future ticket (AF-170) to handle single vs multi-line text fields. Should I strip all newline characters for now, or in the future will the UI prevent users from creating new lines (i.e. hitting enter) inside of single-line text fields?
Still testing to verify I hit all spots where we're looking to trim, marking as draft for now.