]> git.pld-linux.org Git - packages/dokuwiki-plugin-lightbox.git/blobdiff - dokuwiki-plugin-lightbox-dw-jscompress.patch
- workaround for dw js compress going bezerk on seeing single quote in this regexp
[packages/dokuwiki-plugin-lightbox.git] / dokuwiki-plugin-lightbox-dw-jscompress.patch
diff --git a/dokuwiki-plugin-lightbox-dw-jscompress.patch b/dokuwiki-plugin-lightbox-dw-jscompress.patch
new file mode 100644 (file)
index 0000000..426cc30
--- /dev/null
@@ -0,0 +1,11 @@
+--- lightbox/js/prototype.js~  2008-03-10 06:57:43.000000000 +0200
++++ lightbox/js/prototype.js   2009-03-12 03:52:02.059829741 +0200
+@@ -2969,7 +2969,7 @@
+     pseudo:
+ /^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/,
+     attrPresence: /^\[([\w]+)\]/,
+-    attr:         /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/
++    attr:         /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*(([\x27"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/
+   },
+   // for Selector.match and Element#match
This page took 0.068187 seconds and 4 git commands to generate.