about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-08-16 23:57:15 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-08-19 15:08:57 +0200
commit2ebe679d18359c23e040c47a82451ed9bb38235a (patch)
tree86129327b51c10fe7ce0330821eb1995c8de46ca
parent77d6ee0f351b5d058b96f6940e96221515a7acee (diff)
downloadrust-2ebe679d18359c23e040c47a82451ed9bb38235a.tar.gz
rust-2ebe679d18359c23e040c47a82451ed9bb38235a.zip
Strenghten rustdoc js tester file macthing regex
-rw-r--r--src/tools/rustdoc-js/tester.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustdoc-js/tester.js b/src/tools/rustdoc-js/tester.js
index 063dfa6b5ce..ff809d58e90 100644
--- a/src/tools/rustdoc-js/tester.js
+++ b/src/tools/rustdoc-js/tester.js
@@ -437,7 +437,7 @@ async function loadSearchJS(doc_folder, resource_suffix) {
     const staticFiles = path.join(doc_folder, "static.files");
     const stringdexJs = mostRecentMatch(staticFiles, /stringdex.*\.js$/);
     const stringdexModule = require(path.join(staticFiles, stringdexJs));
-    const searchJs = mostRecentMatch(staticFiles, /search.*\.js$/);
+    const searchJs = mostRecentMatch(staticFiles, /search-[0-9a-f]{8}.*\.js$/);
     const searchModule = require(path.join(staticFiles, searchJs));
     globalThis.nonnull = (x, msg) => {
         if (x === null) {