@socketsecurity/lib
Version:
Core utilities and infrastructure for Socket.dev security tools
14 lines (13 loc) • 525 B
TypeScript
/**
* @fileoverview Regular expression utilities including escape-string-regexp implementation.
* Provides regex escaping and pattern matching helpers.
*/
// Inlined escape-string-regexp:
// https://socket.dev/npm/package/escape-string-regexp/overview/5.0.0
// MIT License
// Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
/**
* Escape special characters in a string for use in a regular expression.
*/
/*@__NO_SIDE_EFFECTS__*/
export declare function escapeRegExp(str: string): string;