Skip to content

Do something with matched results

Compare
Choose a tag to compare
@d-Rickyy-b d-Rickyy-b released this 04 Feb 23:07
· 221 commits to master since this release
a0e8624

In this release I implemented a few new features, which require some wiki pages for better explanation. Here's a general list of new features:

1.2.0 - 2020-02-05

Added

  • Analyzers can now return a boolean or a list of matched results
  • Actions now get passed a list of matched results by the analyzer
  • New Analyzer: PasteTitleAnalyzer - Analyzer to match Paste titles via regex
  • New Analyzer: IPv4AddressAnalyzer - Match IPv4 addresses via regex
  • Subclasses of RegexAnalyzer now got a method def verify(results) that can be overwritten to filter matches so you only return valid results
  • EmailPasswordPairAnalyzer has now an optional parameter min_amount to specify how many pairs must be found to actually match
  • Base64Analyzer got an optional parameter min_len to specify how long a detected string must be at least to actually match
  • Logical operators for analyzers - you can now connect multiple analyzers with logical operators to specify more precisely when a paste should match (aed2dbf)

Changed

  • Analyzers can now return a boolean or a list of matched results
  • Actions now get passed a list of matched results by the analyzer and can
  • IBANAnalyzer will now filter out wrong IBANs and return a list of validated IBANs if the validate parameter is set to True

Fixed

  • Using non-capturing groups in regex for various analyzers. This is done so that the analyzer can return a matched string and at the same time it fixed some issues with analyzers not matching properly

This changelog was created with the help of Keep a Changelog