fullcourtdefense-cli 1.34.9 → 1.34.10
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/dist/actionPolicyEngine.js +1 -0
- package/dist/version.json +1 -1
- package/package.json +1 -1
|
@@ -6532,6 +6532,7 @@ function isHighEntropySecretToken(token, allowWordSlug = false) {
|
|
|
6532
6532
|
if (/^data:/i.test(token) || /^[A-Za-z0-9+/]{200,}={0,2}$/.test(token)) return false;
|
|
6533
6533
|
if (/^(?:https?|s3|gs|file):\/\//i.test(token) || /[\\/]{1}[\w.-]+[\\/]/.test(token)) return false;
|
|
6534
6534
|
if (/^[a-z]+(?:[A-Z][a-z0-9]+)+$/.test(token) || /^[a-z]+(?:_[a-z0-9]+)+$/.test(token)) return false;
|
|
6535
|
+
if (allowWordSlug && /^[A-Z][a-z]+-(?:[A-Z][a-z]+){2,}$/.test(token)) return false;
|
|
6535
6536
|
if (allowWordSlug && /^[a-z]+(?:-[a-z]+)+(?:-\d+)?$/.test(token)) return false;
|
|
6536
6537
|
let classes = 0;
|
|
6537
6538
|
if (/[a-z]/.test(token)) classes++;
|
package/dist/version.json
CHANGED