Skip to content

Commit

Permalink
fix(commons): remove potential polynomial complexity from label meta …
Browse files Browse the repository at this point in the history
…regexp
  • Loading branch information
delatrie committed Jul 16, 2024
1 parent 5212a09 commit 91f3720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/allure-js-commons/src/sdk/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const getMessageAndTraceFromError = (

export const allureIdRegexp = /@?allure\.id[:=](?<id>[^\s]+)/;
export const allureIdRegexpGlobal = new RegExp(allureIdRegexp, "g");
export const allureLabelRegexp = /@?allure\.label\.(?<name>[^\s]+?)[:=](?<value>[^\s]+)/;
export const allureLabelRegexp = /@?allure\.label\.(?<name>[^:=]+?)[:=](?<value>[^\s]+)/;
export const allureLabelRegexpGlobal = new RegExp(allureLabelRegexp, "g");

export const extractMetadataFromString = (
Expand Down

0 comments on commit 91f3720

Please sign in to comment.