Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated URL parser to support braces

  • Loading branch information...
commit c9df6b0dbf98b76d3766a12a4feeb0ac39613495 1 parent 4d28217
@sergeche authored
View
2  extensions/chrome/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "XV — XML Viewer",
- "version" : "1.0.10",
+ "version" : "1.0.11",
"description" : "Powerful XML viewer for Google Chrome",
"manifest_version": 2,
"background": {
View
2  src/utils.js
@@ -6,7 +6,7 @@ var xv_utils = (function(){
var re_not_xpath = /^[\w\-\:]+$/;
// regexp from http://www.regexguru.com/2008/11/detecting-urls-in-a-block-of-text/
- var reURL = /\b(?:(?:https?|ftp|file|feed):\/\/|www\.|ftp\.)[\-A-Z0-9\+&@#\/%=~_\|\$\?\!:,\.]*[A-Z0-9+&@#\/%=~_|$]/ig;
+ var reURL = /\b(?:(?:https?|ftp|file|feed):\/\/|www\.|ftp\.)[\-A-Z0-9\+&@#\/%=~_\|\$\?\!:,\.\(\)]*[A-Z0-9+&@#\/%=~_|$]/ig;
return {
/**
View
2  xml/example.xml
@@ -8,7 +8,7 @@
<test xmlns='http://example.com/def'>asdf</test>
-<sub><xyz:bar href="http://www.example.com">link to www.example.com</xyz:bar></sub>
+<sub><xyz:bar href="http://www.example.com">link to http://example.com:8080/job/Task%20(Preview)/72/</xyz:bar></sub>
<selfclosed/>
<selfclosed with='attributes'/>
Please sign in to comment.
Something went wrong with that request. Please try again.