From 29c367991ea7af688b77b9874e3738d64f0fe590 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 30 Dec 2021 20:43:51 +0100 Subject: Fix typo in pjson --- patternutils/commands/pjson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patternutils/commands/pjson.py b/patternutils/commands/pjson.py index faf1be0..8604971 100644 --- a/patternutils/commands/pjson.py +++ b/patternutils/commands/pjson.py @@ -18,7 +18,7 @@ def apply_regex( raise try: - match = mat.apply(data[key], regex_pattern) + match = mat.apply(subject, regex_pattern) except ValueError: click.secho(f"{subject} did not match", fg="red", err=True) raise -- cgit v1.3.1