blob: 2d50aa211b6461f2a23da6c31c0319cc2f8a90e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- what.py.bad 2022-08-09 21:45:39.749535519 +0000
+++ what.py 2022-08-09 21:46:04.392867395 +0000
@@ -18,8 +18,8 @@
def check(self, ctext: T) -> Optional[str]:
logger.trace("Trying PyWhat checker")
- returned_regexes = self.id.identify(ctext, api=True)
- if len(returned_regexes["Regexes"]) > 0:
+ returned_regexes = self.id.identify(ctext)
+ if returned_regexes["Regexes"]:
matched_regex = returned_regexes["Regexes"][0]["Regex Pattern"]
|