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.

Rename `regex-shorthand` rule?

See original GitHub issue

regex-shorthand do more than just shorthand now, should we rename it? also no-unsafe-regex is buggy and already off by default, and I looked around, didn’t found a better solution, maybe we can remove it, if we found a better way to do it, maybe we can add a option to regex-shorthand rule.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sindresorhuscommented, Feb 11, 2020

Let’s go with better-regex.

0reactions
sindresorhuscommented, Feb 12, 2020

We don’t need to mention all of those though. We can link to it in the docs.

So in summary:

  • Enforces shorthands readability
  • Sorts character classes for consistency
  • Makes regexes safer

So for description, maybe:

Improve regexes by making them shorter, consistent, and safer.

As for the error message, that really depends on the transformation being done though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rename Files by Using Regular Expressions
I recently needed to rename a group of files and folders en masse, ... A regular expression (sometimes abbreviated as RE, regexp, or...
Read more >
Regex help for renaming files - XYplorer Beta Club
I'm having a crazy time trying to figure out regex and need some assistance. Im trying to rename a bunch of ebooks, heres...
Read more >
Named Capturing Groups and Backreferences
You can reference the contents of the group with the named backreference (?P=name). The question mark, P, angle brackets, and equals signs are...
Read more >
The little I know about regex…and where to learn more
First off, regex is shorthand for a regular expression. And what, exactly, is a regular expression? According to the linked Wikipedia page, ...
Read more >
Renaming
Add: Add Regular Expression row. · Insert: Insert Regular Expression row. · Delete: Delete selected Regular Expression row. · Check: Check the Regular...
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