Skip to main content
Glama
StringUtils.kt348 B
package maestro.utils object StringUtils { fun String.toRegexSafe(option: RegexOption) = toRegexSafe(setOf(option)) fun String.toRegexSafe(options: Set<RegexOption> = emptySet()): Regex { return try { toRegex(options) } catch (e: Exception) { Regex.escape(this).toRegex(options) } } }

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/mobile-dev-inc/Maestro'

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