Skip to content
Snippets Groups Projects
Commit 7afd0e9f authored by Moul's avatar Moul
Browse files

[fix] #291: Fix deprecation warning on tx comment regex

parent 1794e16f
No related branches found
No related tags found
2 merge requests!146Merge dev into master branch to complete v0.8.0 development cycle,!138#291: Fix deprecation warning on tx comment regex
Pipeline #9474 passed
......@@ -445,7 +445,7 @@ def checkComment(Comment):
if len(Comment) > 255:
message_exit("Error: Comment is too long")
regex = compile(
"^[0-9a-zA-Z\ \-\_\:\/\;\*\[\]\(\)\?\!\^\+\=\@\&\~\#\{\}\|\\\<\>\%\.]*$"
"^[0-9a-zA-Z\\ \\-\\_\\:\\/\\;\\*\\[\\]\\(\\)\\?\\!\\^\\+\\=\\@\\&\\~\\#\\{\\}\\|\\\\<\\>\\%\\.]*$"
)
if not search(regex, Comment):
message_exit("Error: the format of the comment is invalid")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment