From e9e94b475264afde5bf3969f39332ca8894dfcaf Mon Sep 17 00:00:00 2001 From: Michael Xu Date: Tue, 20 Feb 2024 11:39:20 -0500 Subject: [PATCH] return None if regex compilation fails --- src/frontend/src/handler/create_sql_function.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/handler/create_sql_function.rs b/src/frontend/src/handler/create_sql_function.rs index 435d1fe09f111..71fb480ae9ab3 100644 --- a/src/frontend/src/handler/create_sql_function.rs +++ b/src/frontend/src/handler/create_sql_function.rs @@ -66,7 +66,9 @@ fn find_target(input: &str, target: &str) -> Option { // The pattern uses negative lookbehind (?