From 3d72743f5f83d506ba0e29f5baf1b45a650d001b Mon Sep 17 00:00:00 2001 From: flamin Date: Sun, 1 Oct 2017 20:14:33 -0400 Subject: [PATCH] Add support for parentheses in uri --- open-uri-context-menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-uri-context-menu.py b/open-uri-context-menu.py index 5f3f2ee..db5d375 100644 --- a/open-uri-context-menu.py +++ b/open-uri-context-menu.py @@ -27,7 +27,7 @@ import string ACCEPTED_SCHEMES = ['file', 'ftp', 'sftp', 'smb', 'dav', 'davs', 'ssh', 'http', 'https'] -RE_DELIM = re.compile(r'[\w#/\?:%@&\=\+\.\\~-]+', re.UNICODE|re.MULTILINE) +RE_DELIM = re.compile(r'[\w#/\?:\(\)%@&\=\+\.\\~-]+', re.UNICODE|re.MULTILINE) RE_URI_RFC2396 = re.compile("((([a-zA-Z][0-9a-zA-Z+\\-\\.]*):)?/{0,2}([0-9a-zA-Z;:,/\?@&=\+\$\.\-_!~\*'\(\)%]+))?(#[0-9a-zA-Z;,/\?:@&\=+$\.\\-_!~\*'\(\)%]+)?") class OpenURIContextMenuPlugin(GObject.Object, Gedit.WindowActivatable):