@zgeoff/oxlint-config 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/function-verb.js +2 -1
- package/package.json +1 -1
package/function-verb.js
CHANGED
|
@@ -105,7 +105,8 @@ function isVerbMatch(name, verb, bareAllowed) {
|
|
|
105
105
|
return bareAllowed;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
// a digit also ends the verb: acronyms like 2FA start camelCase segments
|
|
109
|
+
return name.startsWith(verb) && /[A-Z0-9]/u.test(name.charAt(verb.length));
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
function findAllowedVerb(name, verbs) {
|