Skip to main content
Glama
isNumeric.js398 B
import assertString from './util/assertString'; import { decimal } from './alpha'; var numericNoSymbols = /^[0-9]+$/; export default function isNumeric(str, options) { assertString(str); if (options && options.no_symbols) { return numericNoSymbols.test(str); } return new RegExp("^[+-]?([0-9]*[".concat((options || {}).locale ? decimal[options.locale] : '.', "])?[0-9]+$")).test(str); }

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/indrasishbanerjee/aem-mcp-server'

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