Add eslint-plugin-regexp (#24361)
Add [`eslint-plugin-regexp`](https://github.com/ota-meshi/eslint-plugin-regexp) and fix discovered issues. Config is mostly the recommended one, but I relaxed a few rules.
This commit is contained in:
parent
cf465b4721
commit
50133b02bd
6 changed files with 160 additions and 4 deletions
|
@ -32,7 +32,7 @@ export function isDarkTheme() {
|
|||
|
||||
// strip <tags> from a string
|
||||
export function stripTags(text) {
|
||||
return text.replace(/<[^>]*>?/gm, '');
|
||||
return text.replace(/<[^>]*>?/g, '');
|
||||
}
|
||||
|
||||
// searches the inclusive range [minValue, maxValue].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue