mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-28 14:08:21 +02:00
feat(theme-algolia): add option.replaceSearchResultPathname to process/replaceAll search result urls (#8428)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
024474a7b9
commit
19ba0ff49d
18 changed files with 214 additions and 52 deletions
12
packages/docusaurus-utils/src/regExpUtils.ts
Normal file
12
packages/docusaurus-utils/src/regExpUtils.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import escapeStringRegexp from 'escape-string-regexp';
|
||||
|
||||
export function escapeRegexp(string: string): string {
|
||||
return escapeStringRegexp(string);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue