Skip to content

Commit

Permalink
GHAS. Prod Config. Fixes incomplete string escaping or encoding (#19374)
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Larisa Staroverova <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2024
1 parent 31e2bf5 commit 1404d80
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,22 +166,22 @@ export class ConfiguratorAttributeNumericInputFieldService {
if (valueName.includes('>')) {
minVal = valueName;
interval.minValueIncluded = false;
minVal = minVal.replace('>', '');
minVal = minVal.replace(/>/g, '');
}
if (valueName.includes('<')) {
maxVal = valueName;
interval.maxValueIncluded = false;
maxVal = maxVal.replace('<', '');
maxVal = maxVal.replace(/</g, '');
}
if (valueName.includes('≥')) {
minVal = valueName;
interval.minValueIncluded = true;
minVal = minVal.replace('≥', '');
minVal = minVal.replace(//g, '');
}
if (valueName.includes('≤')) {
maxVal = valueName;
interval.maxValueIncluded = true;
maxVal = maxVal.replace('≤', '');
maxVal = maxVal.replace(//g, '');
}
if (
!valueName.includes('>') &&
Expand Down

0 comments on commit 1404d80

Please sign in to comment.