@docusaurus/utils
Version:
Node utility functions for Docusaurus packages.
13 lines (10 loc) • 340 B
text/typescript
/**
* 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);
}