Skip to main content
Glama
index.js•405 B
'use strict'; var callBound = require('call-bound'); var isRegex = require('is-regex'); var $exec = callBound('RegExp.prototype.exec'); var $TypeError = require('es-errors/type'); /** @type {import('.')} */ module.exports = function regexTester(regex) { if (!isRegex(regex)) { throw new $TypeError('`regex` must be a RegExp'); } return function test(s) { return $exec(regex, s) !== null; }; };

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/guangxiangdebizi/PPT-MCP'

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