(string)
| 55 | * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping |
| 56 | */ |
| 57 | const _escapeRegExp = (string) => |
| 58 | string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string |
| 59 | |
| 60 | const _displayItem = (item, searchTerms) => { |
| 61 | const docBuilder = DOCUMENTATION_OPTIONS.BUILDER; |