Skip to content

Commit

Permalink
fix sub scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenghao Mou authored and Chenghao Mou committed Jul 5, 2019
1 parent 6b16d7d commit dcd45e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elisa_dnt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def mark(string: str, matches: list, scheme: str = "sub") -> tuple:
for value, key in sorted(modification, key=lambda x: (len(x[0]), x[0]), reverse=True):
string = string.replace(value, f"{key}")

return string, modification, None
return string, [m[0] for m in modification], None

elif scheme == "del":
lead = False
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='elisa-dnt',
version='0.1.4',
version='0.1.5',
packages=['elisa_dnt'],
url='https://github.com/ChenghaoMou/elisa-dnt',
license='',
Expand Down

0 comments on commit dcd45e9

Please sign in to comment.