diff --git a/modernizr.module b/modernizr.module
index aada98c..94b1328 100644
--- a/modernizr.module
+++ b/modernizr.module
@@ -595,7 +595,7 @@ function _modernizr_current_build() {
     // $matches holds two items:
     // - [0] the full URL
     // - [1] a string containing the args captured in the parens  vvvv
-    $build_url = preg_match('/https?:\/\/modernizr.com\/download\/#-(.*) /', $file, $matches);
+    $build_url = preg_match('/https?:\/\/modernizr.com\/download\/[#?]-(.*) /', $file, $matches);
 
     // Turn URL args into test entries for Drupal module
     if (isset($matches[1])) {
