We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6321731 commit a5e38e8Copy full SHA for a5e38e8
1 file changed
scripts/guard-hotpath-policy.mjs
@@ -50,7 +50,7 @@ const ALLOWED_SOURCE_FILE = "core/HotpathPolicy.ts";
50
* - salienceWeights / tierQuotaRatios (policy field names)
51
*/
52
const HOTPATH_FIELD_PATTERN =
53
- /\b(salienceWeights|tierQuotaRatios|(?<![a-zA-Z_$])alpha(?![a-zA-Z_$])|(?<![a-zA-Z_$])beta(?![a-zA-Z_$])|(?<![a-zA-Z_$])gamma(?![a-zA-Z_$]))\b/;
+ /\b(salienceWeights|tierQuotaRatios|(?<![a-zA-Z_$])c(?![a-zA-Z_$])|(?<![a-zA-Z_$])alpha(?![a-zA-Z_$])|(?<![a-zA-Z_$])beta(?![a-zA-Z_$])|(?<![a-zA-Z_$])gamma(?![a-zA-Z_$])|(?<![a-zA-Z_$])shelf(?![a-zA-Z_$])|(?<![a-zA-Z_$])volume(?![a-zA-Z_$])|(?<![a-zA-Z_$])book(?![a-zA-Z_$])|(?<![a-zA-Z_$])page(?![a-zA-Z_$]))\b/;
54
55
const ASSIGNMENT_PATTERN = /[:=]/;
56
const NUMERIC_LITERAL_PATTERN = /(^|[^\w.])-?\d+(?:\.\d+)?([^\w.]|$)/;
0 commit comments