Should we add a strict mode that removes all special characters?
See original GitHub issueSomehow I expected this would be the default.
I love how this package coerces foreign symbols to their English equivalent.
The strict mode of my dreams would then remove any character that doesn’t match [a-zA-Z0-9-]
.
Achieving this using remove
requires an exhaustive list which isn’t predictable.
What do you think? I could submit a PR if there is demand for this feature.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Strict mode - JavaScript - MDN Web Docs
JavaScript's strict mode is a way to opt in to a restricted variant of JavaScript, thereby implicitly opting-out of "sloppy mode".
Read more >Why escape characters are not allowed in strict mode?
I 'm pretty sure the same reasoning applies as with octal numbers - these days, octal escapes are somewhat exotic. Also, "strict mode"...
Read more >JavaScript "use strict" - W3Schools
You can use strict mode in all your programs. It helps you to write cleaner code, like preventing you from using undeclared variables....
Read more >Strict mode in JavaScript - GeeksforGeeks
Strict mode eliminates some JavaScript silent errors by changing them to throw errors. Strict mode fixes mistakes that make it difficult for ...
Read more >MySQL 8.0 Reference Manual :: 5.1.11 Server SQL Modes
For best results, you should always use the same server SQL mode on the source ... this mode disables the use of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Probably that’s a topic for another PR though, also I’m not expecting breaking changes with a new feature.
see #74