Skip to main content
Glama
ssv445

Lorem Ipsum MCP Server

by ssv445
RegExp.ts889 B
/** * This module provides utility functions for working with RegExp in TypeScript. * * @since 2.0.0 */ import * as predicate from "./Predicate.js" /** * Tests if a value is a `RegExp`. * * @example * ```ts * import * as assert from "node:assert" * import { RegExp } from "effect" * * assert.deepStrictEqual(RegExp.isRegExp(/a/), true) * assert.deepStrictEqual(RegExp.isRegExp("a"), false) * ``` * * @category guards * @since 3.9.0 */ export const isRegExp: (input: unknown) => input is RegExp = predicate.isRegExp /** * Escapes special characters in a regular expression pattern. * * @example * ```ts * import * as assert from "node:assert" * import { RegExp } from "effect" * * assert.deepStrictEqual(RegExp.escape("a*b"), "a\\*b") * ``` * * @since 2.0.0 */ export const escape = (string: string): string => string.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ssv445/lorem-ipsum-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server