From 7afd0e9f5c71462862cc423217a0b42116ccd38e Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Tue, 28 Jul 2020 21:04:33 +0200
Subject: [PATCH] [fix] #291: Fix deprecation warning on tx comment regex

---
 silkaj/tx.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/silkaj/tx.py b/silkaj/tx.py
index 84f6ba5e..14898d10 100644
--- a/silkaj/tx.py
+++ b/silkaj/tx.py
@@ -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")
-- 
GitLab