diff options
| author | Dennis Fink | 2021-12-30 20:43:51 +0100 |
|---|---|---|
| committer | Dennis Fink | 2021-12-30 20:43:51 +0100 |
| commit | 29c367991ea7af688b77b9874e3738d64f0fe590 (patch) | |
| tree | 8f494f9b80c3679d6bda1b441290b4c88f72fddc | |
| parent | eda74c3020404628f9a7af37a36232d95f233803 (diff) | |
| download | patternutils-29c367991ea7af688b77b9874e3738d64f0fe590.tar.gz patternutils-29c367991ea7af688b77b9874e3738d64f0fe590.zip | |
Fix typo in pjson
| -rw-r--r-- | patternutils/commands/pjson.py | 2 |
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 |
