Nucleus handler tools βΊ Docs βΊ Checks
A regular expression that never matches
Why it matters
[] in a regular expression matches nothing, so the whole expression never matches.
Example
β Wrong
var r = /a[]/;β Right
var r = /a[b]/;How to fix it
Put the characters to match inside [ ].
Turn it off, or change how it shows
Each check can be shown as an error, warning, info or hint, or turned off. VS Code: "splitscreenme.lint.rules": { "no-empty-character-class": "off" } in your settings. Notepad++: Plugins βΊ Nucleus Co-op handlers βΊ Settings. Command line: ncdev lint --rule no-empty-character-class=off. Other editors: the lint.rules setting of ncdev lsp.
Is this right?
Tell us what's wrong