Skip to content

Commit

Permalink
Fixed a bug occuring when inserting a virtual account (missing bracket).
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne committed May 26, 2021
1 parent 918981a commit 4f214b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions SearchAccountPayee.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ def get_info(filename, search_key):
list
List of key entries.
"""
# if isinstance(search_key, str):
# search_key = [search_key]

with open(filename, encoding="utf-8") as file:
content = file.read()

Expand Down Expand Up @@ -60,7 +57,7 @@ def run(self, edit, item=None, search_key='account'):
# Insert item.

# Get possible virtual flag
pattern = utils.get_settings().get("virtual_regex")
pattern = utils.get_settings().get("virtual_keyword")

# Add brackets if virtual.
if pattern != "" and re.search(pattern, item):
Expand Down

0 comments on commit 4f214b2

Please sign in to comment.