Skip to content

Commit

Permalink
introduced regex support in transform arguments for #59
Browse files Browse the repository at this point in the history
  • Loading branch information
bebo-dot-dev committed Mar 13, 2021
1 parent eb4b2d2 commit e13d41d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions m3u-epg-editor-py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ def transform_string_value(string_value, compare_value, transforms):
string_value = replacement_value
elif src_value in string_value:
string_value = string_value.replace(src_value, replacement_value)
else:
string_value = re.sub(src_value, replacement_value, string_value)
return string_value

# filters the given m3u_entries using the supplied groups
Expand Down

0 comments on commit e13d41d

Please sign in to comment.