Improves on r73032 by making more consistent use of escape sequences.
authorTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 1 Oct 2010 19:20:27 +0000 (19:20 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 1 Oct 2010 19:20:27 +0000 (19:20 +0000)
resources/jquery/jquery.client.js

index 75da269..8b3575e 100644 (file)
@@ -56,7 +56,7 @@ jQuery.client = new ( function() {
                                'msie', 'safari', 'ps3'
                        ];
                        // Used as matches 2, 3 and 4 in version extraction - 3 is used as actual version number
-                       var versionSuffix = '(\/|\;?\s|)([a-z0-9\.\+]*?)(\;|dev|rel|\\)|\s|$)';
+                       var versionSuffix = '(\\/|\\;?\\s|)([a-z0-9\\.\\+]*?)(\\;|dev|rel|\\)|\\s|$)';
                        // Names of known browsers
                        var names = [
                                'camino', 'chrome', 'firefox', 'netscape', 'konqueror', 'lynx', 'msie', 'opera', 'safari', 'ipod',