Skip to main content
Glama
regex-utils.js411 B
export var isValidRegex = function (str) { try { new RegExp(str); } catch (_a) { return false; } return true; }; export var isMatchingRegex = function (value, pattern) { if (!isValidRegex(pattern)) return false; try { return new RegExp(pattern).test(value); } catch (_a) { return false; } }; //# sourceMappingURL=regex-utils.js.map

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/sadiuysal/mem0-mcp-server-ts'

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