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
StringUtilsTest.kt•541 B
package maestro.utils
import com.google.common.truth.Truth.assertThat
import maestro.utils.StringUtils.toRegexSafe
import org.junit.jupiter.api.Test
internal class StringUtilsTest {
@Test
internal fun `toRegexSafe should escape string if regex is invalid`() {
// Given
val input = "*Oświadczam, że zapoznałem się z treścią Regulaminu serwisu i akceptuję jego postanowienia."
// When
val regex = input.toRegexSafe()
// Then
assertThat(regex.matches(input)).isTrue()
}
}