You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/__tests__/__snapshots__/tool.searchPatternFlyDocs.test.ts.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ exports[`searchPatternFlyDocsTool, callback should parse parameters, with lower
20
20
21
21
exports[`searchPatternFlyDocsTool, callback should parse parameters, with made up componentName: search 1`] =`"No PatternFly documentation found matching "lorem ipsum dolor sit amet""`;
22
22
23
-
exports[`searchPatternFlyDocsTool, callback should parse parameters, with multiple words: search 1`] =`"No PatternFly documentation found matching "Button Card Table""`;
23
+
exports[`searchPatternFlyDocsTool, callback should parse parameters, with multiple words: search 1`] =`"# Search results for "Button Card Table", 3 matches found:"`;
24
24
25
25
exports[`searchPatternFlyDocsTool, callback should parse parameters, with partial componentName: search 1`] =`"# Search results for "ton", 2 matches found:"`;
* @param {number} options.maxDistance - Maximum edit distance for a match. Distance is defined as
128
131
* @param {number} options.maxResults - Maximum number of results to return
129
-
* @param {NormalizeString} options.normalizeFn - Function to normalize strings (default: `normalizeString`)
132
+
* @param {NormalizeString} options.normalizeFn - Function to normalize strings. Should always return a string or empty string (default: `normalizeString`)
130
133
* @param {boolean} options.isExactMatch - Include exact matches in results (default: `true`)
131
134
* @param {boolean} options.isPrefixMatch - Include prefix matches in results (default: `true`)
132
135
* @param {boolean} options.isSuffixMatch - Include suffix matches in results (default: `true`)
133
136
* @param {boolean} options.isContainsMatch - Include contains matches in results (default: `true`)
137
+
* @param {boolean} options.isPartialMatch - Include partial matches in results (default: `true`)
134
138
* @param {boolean} options.isFuzzyMatch - Allow fuzzy matches even when `maxDistance` is negative or zero.
135
139
* @param {boolean} options.deduplicateByNormalized - If `true`, deduplicate results by normalized value instead of original string.
136
140
* @returns {FuzzySearchResult[]} Array of matching strings with distance and match type
0 commit comments