prefer-regexp-exec
Configuration
rslint.config.ts
Rule Details
Prefer RegExp#exec over String#match when a non-global regex match is used.
Examples of incorrect code for this rule:
Examples of correct code:
Prefer RegExp#exec over String#match when a non-global regex match is used.
Examples of incorrect code for this rule:
Examples of correct code: