Skip to content

Commit

Permalink
Use regex prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rm-hull committed Mar 18, 2017
1 parent 38a1443 commit 8105dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luma/core/ansi_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def parse_str(text):
escape codes.
:type text: str
"""
prog = re.compile('^\033\[(\d+(;\d+)*)m')
prog = re.compile(r'^\033\[(\d+(;\d+)*)m')
text = str(text)

while text != "":
Expand Down

0 comments on commit 8105dee

Please sign in to comment.