Skip to content

Commit

Permalink
enhance(explorer): better regex
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Jun 26, 2024
1 parent 9c18287 commit cc209f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gridLang/GridLangConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const IndicatorIdsOrEtlPathsCellDef: CellDef = {
keyword: "",
cssClass: "IndicatorIdOrEtlPath",
description: "One or more indicator IDs or paths to an ETL indicator.",
regex: /^(\d+|[\w\d_/\-]+(#[\w\d_/\-]+)? ?)+$/,
regex: /^(\d+|[\w\d_/\-]+(#[\w\d_/\-]+)?(\s+|$))+$/,

Check failure

Code scanning / CodeQL

Inefficient regular expression High

This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '0'.
requirementsDescription: `Can only contain the characters a-zA-Z0-9-_/# `,
}

Expand Down

0 comments on commit cc209f4

Please sign in to comment.