🏡 index : ~doyle/dave.git

author Jordan Doyle <jordan@doyle.wf> 2017-08-08 11:40:14.0 +01:00:00
committer GitHub <noreply@github.com> 2017-08-08 11:40:14.0 +01:00:00
commit
ee944c62c4e0032dff0dd43c392fa01f8d5842b7 [patch]
tree
8205ae1b0ba3b328ddbde468ef62d923b0b007fc
parent
42e8dfbb1878aaabfd81566d884ca7eaab85c385
download
ee944c62c4e0032dff0dd43c392fa01f8d5842b7.tar.gz

Update sed.py



Diff

 dave/modules/sed.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dave/modules/sed.py b/dave/modules/sed.py
index f406014..5dcf139 100644
--- a/dave/modules/sed.py
+++ a/dave/modules/sed.py
@@ -26,7 +26,7 @@

        try:
            # bold replacements
            toDisplay = re.sub(args[3], "\x02{}\x0F".format(args[5]) if args[5] else "",
            toDisplay = re.sub(args[3], "\x02{}\x02".format(args[5]) if args[5] else "",
                               msg, count=0 if 'g' in flags else 1, flags=f)
            toSave = re.sub(args[3], args[5], msg,
                            count=0 if 'g' in flags else 1, flags=f)