Skip to content

Commit

Permalink
fix concordance search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liao961120 committed Oct 11, 2021
1 parent e3b5700 commit 6c70f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion concordancer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def queryMatchToken(queryTerm: dict, corpToken: dict):
negative_matched_tag += 1
else:
value = append_regex_anchors(value)
if (target_value != None) and re.search(value, target_value):
if (target_value != None) and (not re.search(value, target_value)):
negative_matched_tag += 1

if negative_matched_tag != counter:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = f.read().strip()

setup(name='concordancer',
version='0.1.13',
version='0.1.14',
description='Extract concordance lines from corpus with CQL',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 6c70f4f

Please sign in to comment.