Skip to content

Commit 2ebe679

Browse files
Strenghten rustdoc js tester file macthing regex
1 parent 77d6ee0 commit 2ebe679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rustdoc-js/tester.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ async function loadSearchJS(doc_folder, resource_suffix) {
437437
const staticFiles = path.join(doc_folder, "static.files");
438438
const stringdexJs = mostRecentMatch(staticFiles, /stringdex.*\.js$/);
439439
const stringdexModule = require(path.join(staticFiles, stringdexJs));
440-
const searchJs = mostRecentMatch(staticFiles, /search.*\.js$/);
440+
const searchJs = mostRecentMatch(staticFiles, /search-[0-9a-f]{8}.*\.js$/);
441441
const searchModule = require(path.join(staticFiles, searchJs));
442442
globalThis.nonnull = (x, msg) => {
443443
if (x === null) {

0 commit comments

Comments
 (0)