Easier search for C++ keyword
This commit is contained in:
parent
912ffd2a04
commit
4e6ceb7dad
@ -12,12 +12,15 @@
|
||||
</p>
|
||||
<script type="text/javascript">
|
||||
$("#search-box").bind("input", () => {
|
||||
const keyword = $("#search-box").val();
|
||||
let keyword = $("#search-box").val();
|
||||
|
||||
if(keyword == ""){
|
||||
$("#search-results").hide();
|
||||
return;
|
||||
}
|
||||
if(keyword.toLowerCase() == "c++"){
|
||||
keyword = "C\\+\\+";
|
||||
}
|
||||
|
||||
const keywordRe = new RegExp(keyword, "i");
|
||||
let count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user