Skip to content

Commit 94edde2

Browse files
committed
Added: More search terms.
1 parent c1b7089 commit 94edde2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

HelpFileCreator.au3

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ Func _CHM_WriteJScript($sWorkingFolder, $sFileUDF, $sHomeLink)
6969
Local $aHeaders = StringRegExp($sData, "(?si); #FUNCTION# ;*.*?;\h*=", 3)
7070
If @error Then Return SetError(1, 0, 0)
7171

72-
Local $sNewContent, $sFunctionName, $sDesc
72+
Local $sNewContent, $sFunctionName, $sDesc, $sSearchTerms
7373
; Build-up search terms based on functions names and descriptions
7474
For $j = 0 To UBound($aHeaders) - 1
7575
$sFunctionName = _CHM_GetHeaderData($aHeaders[$j], "Name")
76+
$sSearchTerms = StringRegExpReplace(StringReplace(StringReplace(StringRegExpReplace(StringReplace(_CHM_GetHeaderData($aHeaders[$j], "Parameters") & " " & _CHM_GetHeaderData($aHeaders[$j], "Remarks"), @CRLF, " "), "\s{2,}", ""), "[out]", ""), "[optional]", ""), '[\;\-\"\[\]\(\)]', "")
7677
$sDesc = _CHM_GetHeaderData($aHeaders[$j], "Description")
77-
$sNewContent &= 'searchDB.push(new searchOption("' & $sFunctionName & '", "' & $sDesc & '"));' & @CRLF
78+
$sNewContent &= 'searchDB.push(new searchOption("' & $sFunctionName & '", "' & $sSearchTerms & '", "' & $sDesc & '"));' & @CRLF
7879
Next
7980

8081
Local $sJS = StringReplace(FileRead($sJSFile), "//--PLACEHOLDER-I-DO-NOT-REMOVE-ME--//", $sNewContent)

0 commit comments

Comments
 (0)