diff --git a/library/src/commonMain/kotlin/com/contextable/a2ui4k/function/FunctionEvaluator.kt b/library/src/commonMain/kotlin/com/contextable/a2ui4k/function/FunctionEvaluator.kt index b0a978c..071f833 100644 --- a/library/src/commonMain/kotlin/com/contextable/a2ui4k/function/FunctionEvaluator.kt +++ b/library/src/commonMain/kotlin/com/contextable/a2ui4k/function/FunctionEvaluator.kt @@ -113,7 +113,7 @@ object FunctionEvaluator { val pattern = resolveArgString(args, "pattern", dataContext) ?: return JsonPrimitive(false) return try { JsonPrimitive(Regex(pattern).matches(value)) - } catch (e: Exception) { + } catch (_: Throwable) { JsonPrimitive(false) } } diff --git a/library/src/commonTest/kotlin/com/contextable/a2ui4k/state/SurfaceStateManagerTest.kt b/library/src/commonTest/kotlin/com/contextable/a2ui4k/state/SurfaceStateManagerTest.kt index 4e01b3a..6380839 100644 --- a/library/src/commonTest/kotlin/com/contextable/a2ui4k/state/SurfaceStateManagerTest.kt +++ b/library/src/commonTest/kotlin/com/contextable/a2ui4k/state/SurfaceStateManagerTest.kt @@ -649,7 +649,7 @@ class SurfaceStateManagerTest { // --- Multiple operations in sequence --- @Test - fun `full lifecycle - create, update components, update data, delete`() { + fun `full lifecycle - create then update components then update data then delete`() { val manager = SurfaceStateManager() // Create