-
-
Notifications
You must be signed in to change notification settings - Fork 358
Adding your own Regex
Brandon edited this page May 22, 2021
·
13 revisions
Rarity How unlikely is it to be a false-positive? 1 for very unlikely, 0 for very likely.
Please place your Regex into the YAML file in sorted order of rarity.
-
Write tests here: https://github.com/bee-san/pyWhat/blob/main/tests/test_regex_identifier.py and here: https://github.com/bee-san/pyWhat/blob/main/tests/test_click.py which uses this file: https://github.com/bee-san/pyWhat/blob/main/fixtures/file
-
Add regexes here: https://github.com/bee-san/pyWhat/blob/main/pywhat/Data/regex.json
Sort it by hand in the order of rarity. Least unlikely to have false positives go at the top, most likely to have false positives go at the bottom.
- Please include a description, if needed, and tags so we can easily categorise and filter this in the future!