Skip to content

Releases: tjenkinson/redos-detector

v6.1.2

02 Jan 19:55
Compare
Choose a tag to compare

What's Changed

  • Respect inverted unicode property escape in character class by @tjenkinson in #656

Full Changelog: v6.1.1...v6.1.2

v6.1.1

24 Dec 17:31
68a0855
Compare
Choose a tag to compare

Full Changelog: v6.1.0...v6.1.1

v6.1.0

24 Dec 17:26
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.0.2...v6.1.0

v6.0.2

19 Dec 21:54
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.0.1...v6.0.2

v6.0.1

19 Dec 21:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.0.0...v6.0.1

v6.0.0

19 Dec 20:24
Compare
Choose a tag to compare

What's Changed

  • Switch to score instead of worstCaseBacktrackCount by @tjenkinson in #637

Breaking changes

Library:

  • maxBacktracks config removed
  • maxScore config added
  • worstCaseBacktrackCount removed
  • score added
  • hitMaxBacktracks error removed
  • hitMaxScore error added
  • BacktrackCount type removed
  • Score type added

CLI:

  • --maxBacktracks removed
  • --maxScore added

How is score calculated?

  • All the different paths an input string could take through the provided pattern are calculated.
  • Then for each candidate path found above, starting from just the first character, up to the complete path, all the other paths that could also match a string that matches the candidate path are found.
  • The score is the highest number found above. The higher the score, the more backtracks an engine will potentially need to take if the input string doesn't match the pattern.
  • If the score is 1 this means no backtracks can occur and for every possible input string the pattern could only match one way.
  • If there are too many different paths it can be too expensive to calculate an accurate score, so it falls back incrementing every time a new path is found.

Full Changelog: v5.1.3...v6.0.0

v5.1.3

19 Oct 13:59
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.1.2...v5.1.3

v5.1.2

03 Oct 08:03
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.1.1...v5.1.2

v5.1.1

02 Oct 20:17
Compare
Choose a tag to compare

What's Changed

  • Make worst case backreference count accurate, and other fixes by @tjenkinson in #599
  • Prepend [^]* to patterns that are not bounded at the start by @tjenkinson in #612

Full Changelog: v5.1.0...v5.1.1

v5.1.0

12 Nov 21:42
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.0.1...v5.1.0