Skip to content

Commit a5e38e8

Browse files
devlux76Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 6321731 commit a5e38e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/guard-hotpath-policy.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const ALLOWED_SOURCE_FILE = "core/HotpathPolicy.ts";
5050
* - salienceWeights / tierQuotaRatios (policy field names)
5151
*/
5252
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/;
53+
/\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/;
5454

5555
const ASSIGNMENT_PATTERN = /[:=]/;
5656
const NUMERIC_LITERAL_PATTERN = /(^|[^\w.])-?\d+(?:\.\d+)?([^\w.]|$)/;

0 commit comments

Comments
 (0)