Skip to content
Snippets Groups Projects
Commit 3a359da3 authored by Hasan Karahan's avatar Hasan Karahan Committed by Marijn Haverbeke
Browse files

Fixed minor bug: HTTP path with commas now properly highlighted

parent 55fc0ac7
No related branches found
No related tags found
No related merge requests found
......@@ -496,7 +496,7 @@ CodeMirror.defineMode('rst', function (config, options) {
var rx_uri_protocol = "[Hh][Tt][Tt][Pp][Ss]?://";
var rx_uri_domain = "(?:[\\d\\w.-]+)\\.(?:\\w{2,6})";
var rx_uri_path = "(?:/[\\d\\w\\#\\%\\&\\-\\.\\/\\:\\=\\?\\~]+)*";
var rx_uri_path = "(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*";
var rx_uri = new RegExp("^" +
rx_uri_protocol + rx_uri_domain + rx_uri_path
);
......
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