@commitlint/load
Advanced tools
Comparing version 19.2.0 to 19.4.0
import path from 'path'; | ||
// largely adapted from eslint's plugin system | ||
const NAMESPACE_REGEX = /^@.*\//iu; | ||
const NAMESPACE_REGEX = /^@.*\//u; | ||
// In eslint this is a parameter - we don't need to support the extra options | ||
@@ -33,3 +33,3 @@ const prefix = 'commitlint-plugin'; | ||
*/ | ||
const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, 'u'), scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, 'u'); | ||
const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, 'u'), scopedPackageNameRegex = new RegExp(`^${prefix}(?:-|$)`, 'u'); | ||
if (scopedPackageShortcutRegex.test(normalizedName)) { | ||
@@ -78,5 +78,5 @@ normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); | ||
export function getNamespaceFromTerm(term) { | ||
const match = term.match(NAMESPACE_REGEX); | ||
const match = NAMESPACE_REGEX.exec(term); | ||
return match ? match[0] : ''; | ||
} | ||
//# sourceMappingURL=plugin-naming.js.map |
{ | ||
"name": "@commitlint/load", | ||
"type": "module", | ||
"version": "19.2.0", | ||
"version": "19.4.0", | ||
"description": "Load shared commitlint configuration", | ||
@@ -59,3 +59,3 @@ "main": "lib/load.js", | ||
}, | ||
"gitHead": "a64b417b58b3b1e89f07ff529a29a4af223e9369" | ||
"gitHead": "bac2288cc7de5bb6f41939d1c562193c74ce16d5" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package