summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patternutils/commands/pjson.py2
1 files changed, 1 insertions, 1 deletions
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