diff --git a/jquery_update.module b/jquery_update.module
index 9e53f8a..ff5ee8b 100644
--- a/jquery_update.module
+++ b/jquery_update.module
@@ -105,7 +105,7 @@ function jquery_update_preprocess_page(&$variables) {
  */
 function jquery_update_get_version($jquery_path = NULL) {
   $version = 0;
-  $pattern = '# * jQuery JavaScript Library v([0-9\.a-z]+)#';
+  $pattern = '# * jQuery( JavaScript Library)? v([0-9\.a-z]+)#';
 
   // No file is passed in so default to the file included with this module.
   if (is_null($jquery_path)) {
@@ -115,7 +115,7 @@ function jquery_update_get_version($jquery_path = NULL) {
   // Return the version provided by jQuery Update.
   $jquery = file_get_contents($jquery_path);
   if (preg_match($pattern, $jquery, $matches)) {
-    $version = $matches[1];
+    $version = $matches[2];
   }
 
   return $version;
