question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should we add a strict mode that removes all special characters?

See original GitHub issue

Somehow 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:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
simovcommented, Feb 25, 2020

Probably that’s a topic for another PR though, also I’m not expecting breaking changes with a new feature.

0reactions
simovcommented, Mar 1, 2020

see #74

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found