Skip to content

fix: matchGlobs function to correctly handle negation patterns #488

fix: matchGlobs function to correctly handle negation patterns

fix: matchGlobs function to correctly handle negation patterns #488

Triggered via pull request June 27, 2024 09:51
Status Failure
Total duration 1m 34s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: src/core/declaration.ts#L14
The quantifier '[^\s'"]+' can exchange characters with '.+?'. Using any string accepted by /:+/, this can be exploited to cause at least polynomial backtracking
lint: src/core/declaration.ts#L14
The quantifier '[^\s'"]+' can exchange characters (:) with '.+?'. This makes the capturing group misleading, because the quantifier will capture fewer characters than its pattern suggests
lint: src/core/declaration.ts#L14
The quantifier '\s*' can exchange characters with '.+?'. Using any string accepted by /[\t\x0b\f \xa0\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]+/, this can be exploited to cause at least polynomial backtracking
lint: src/core/declaration.ts#L29
Unescaped source character '{'
lint: src/core/declaration.ts#L29
Capturing group number 1 is defined but never used
lint: src/core/declaration.ts#L29
Unescaped source character '}'
lint: src/core/declaration.ts#L33
Unescaped source character '{'
lint: src/core/declaration.ts#L33
Capturing group number 1 is defined but never used
lint: src/core/declaration.ts#L33
Unescaped source character '}'
lint: src/core/resolvers/bootstrap-vue.ts#L13
[keep-sorted] fix: Keep sorted
lint: src/core/declaration.ts#L10
The 'm' flag is unnecessary because the pattern does not contain start (^) or end ($) assertions