Index: chrome/test/data/extensions/api_test/webnavigation/framework.js |
diff --git a/chrome/test/data/extensions/api_test/webnavigation/framework.js b/chrome/test/data/extensions/api_test/webnavigation/framework.js |
index 5652dc1d90e147675dce01352ebe968ff3d3b30f..1cc871ef26e743a7dc0f9626bc5b6cf7bc5a239c 100644 |
--- a/chrome/test/data/extensions/api_test/webnavigation/framework.js |
+++ b/chrome/test/data/extensions/api_test/webnavigation/framework.js |
@@ -98,7 +98,7 @@ function captureEvent(name, details) { |
return; |
} |
// Strip query parameter as it is hard to predict. |
- details.url = details.url.replace(new RegExp('\\?.*'), ''); |
+ details.url = details.url.replace(new RegExp('\\?[^#]*'), ''); |
} |
// normalize details. |
if ('timeStamp' in details) { |