[gedit-plugins] Remove dotall flag from regex replace in commander



commit 9632ed6c2f61fae8ad3d919aee81c9ba910ab058
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Sat Aug 27 10:34:06 2011 +0200

    Remove dotall flag from regex replace in commander

 plugins/commander/modules/find/regex.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/commander/modules/find/regex.py b/plugins/commander/modules/find/regex.py
index a2a640a..dfa5ce1 100644
--- a/plugins/commander/modules/find/regex.py
+++ b/plugins/commander/modules/find/regex.py
@@ -31,7 +31,7 @@ class RegexFinder(finder.Finder):
     def __init__(self, entry, flags = 0):
         finder.Finder.__init__(self, entry)
 
-        self.flags = re.UNICODE | re.MULTILINE | re.DOTALL | flags
+        self.flags = re.UNICODE | re.MULTILINE | flags
         self.groupre = re.compile('(\\\\)?\\$([0-9]+|{(([0-9]+):([^}]+))})')
 
     def set_find(self, findstr):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]