mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 01:28:06 +02:00
Enable the unicorn/prefer-regexp-test
ESLint plugin rule
Please see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-test.md
This commit is contained in:
parent
bf78ccac30
commit
20b9887476
4 changed files with 5 additions and 4 deletions
|
@ -1005,7 +1005,7 @@ class Rename extends ContentObject {
|
|||
// is no colon.
|
||||
if (
|
||||
this[$content].toLowerCase().startsWith("xml") ||
|
||||
this[$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*", "u"))
|
||||
new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*", "u").test(this[$content])
|
||||
) {
|
||||
warn("XFA - Rename: invalid XFA name");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue