File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 < label class ="checkbox-label ">
4040 < input type ="checkbox " id ="search-case "> Match Case
4141 </ label >
42+ < label class ="checkbox-label ">
43+ < input type ="checkbox " id ="search-whole-word "> Whole Word
44+ </ label >
4245 < button id ="btn-search " class ="toolbar-btn " title ="Search "> Search</ button >
4346 < button id ="btn-prev-result " class ="toolbar-btn small " title ="Previous result " disabled > <</ button >
4447 < span id ="search-result-count " class ="result-count "> </ span >
Original file line number Diff line number Diff line change @@ -597,6 +597,7 @@ const elements = {
597597 searchInput : document . getElementById ( 'search-input' ) as HTMLInputElement ,
598598 searchRegex : document . getElementById ( 'search-regex' ) as HTMLInputElement ,
599599 searchCase : document . getElementById ( 'search-case' ) as HTMLInputElement ,
600+ searchWholeWord : document . getElementById ( 'search-whole-word' ) as HTMLInputElement ,
600601 searchResultCount : document . getElementById ( 'search-result-count' ) as HTMLSpanElement ,
601602 searchEngineBadge : document . getElementById ( 'search-engine-badge' ) as HTMLSpanElement ,
602603 searchEngineInfo : document . getElementById ( 'search-engine-info' ) as HTMLParagraphElement ,
@@ -3441,7 +3442,7 @@ async function performSearch(): Promise<void> {
34413442 pattern,
34423443 isRegex : elements . searchRegex . checked ,
34433444 matchCase : elements . searchCase . checked ,
3444- wholeWord : false ,
3445+ wholeWord : elements . searchWholeWord . checked ,
34453446 } ;
34463447
34473448 // Add column config if columns are filtered
You can’t perform that action at this time.
0 commit comments