Skip to content

Commit

Permalink
Fix an incorrect regular expression
Browse files Browse the repository at this point in the history
Use [0-9a-f], not [0-9-af].
  • Loading branch information
DemiMarie committed Jun 28, 2022
1 parent 4f1428f commit b870349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splitgpg2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def map_back(match):
return bytes([int(char[1:2], 16)])


return re.sub(rb'\\(\\|n|r|f|v|b|0|x[0-9-af]{2})', map_back, escaped)
return re.sub(rb'\\(\\|n|r|f|v|b|0|x[0-9a-f]{2})', map_back, escaped)

@staticmethod
def percent_plus_escape(to_escape):
Expand Down

0 comments on commit b870349

Please sign in to comment.