Skip to content

Commit 29d8651

Browse files
authored
Resolves Issue fortran-lang#217
I have made the changes that would handle all regex and this also solves the Issue fortran-lang#217. Thanks and Regards, Henil Panchal
1 parent 8f615e5 commit 29d8651

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

assets/js/package_search.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
// Get search string
1818
var query = fortranLang.findGetParameter('query').split('+').join(' ');
1919

20-
var tokens,
20+
var tokens,queryString,
2121
re = /[?&]?([^=]+)=([^&]*)/g;
22-
tokens = re.exec(query);
22+
2323

24-
25-
var queryString = decodeURIComponent(tokens[2]);
24+
while (tokens = re.exec(query)) {
25+
queryString = decodeURIComponent(tokens[2]);
26+
}
27+
2628

2729
document.getElementById('search-query').value = queryString;
2830

0 commit comments

Comments
 (0)