Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
support python3.4, update version='0.1.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Apr 1, 2019
1 parent 16000c6 commit 3089b86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mybatis_mapper2sql/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ def convert_trim_where_set(mybatis_mapper, child):
convert_string += convert_children(mybatis_mapper, next_child)
# Remove prefixOverrides
if prefix_overrides:
regex = fr'^[\s]*?({prefix_overrides})'
regex = r'^[\s]*?{}'.format(prefix_overrides)
convert_string = re.sub(regex, '', convert_string, count=1, flags=re.I)
# Remove suffixOverrides
if suffix_overrides:
regex = fr'{suffix_overrides}(\s+--.+)?$'
regex = r'{}(\s+--.+)?$'.format(suffix_overrides)
convert_string = re.sub(regex, r'', convert_string, count=1, flags=re.I)
# Add Prefix if String is not empty
if re.search(r'\S', convert_string):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run_tests(self):

setup(
name='mybatis-mapper2sql',
version='0.1.5',
version='0.1.6',
author='hhyo',
author_email='rtttte@qq.com',
url='http://github.com/hhyo/mybatis-mapper2sql',
Expand Down

0 comments on commit 3089b86

Please sign in to comment.