Skip to main content
Glama
regexp.js316 B
import { truncate } from './helpers' export default function inspectRegExp(value, options) { const flags = value.toString().split('/')[2] const sourceLength = options.truncate - (2 + flags.length) const source = value.source return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, 'regexp') }

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/yogendhra9/ZerodhaMCP'

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