From a87bc7375375b96438acb992d36c48d262ed1ffc Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 17 Jan 2024 19:17:42 +0800 Subject: [PATCH] Update regular expressions in data.go --- sui/core/data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sui/core/data.go b/sui/core/data.go index ed01e89f..22e6f900 100644 --- a/sui/core/data.go +++ b/sui/core/data.go @@ -12,8 +12,8 @@ import ( ) // If set the map value, should keep the space at the end of the statement -var stmtRe = regexp.MustCompile(`\{\{(.*?)\}\}`) -var propRe = regexp.MustCompile(`\[\{(.*?)\}\]`) +var stmtRe = regexp.MustCompile(`\{\{([\s\S]*?)\}\}`) +var propRe = regexp.MustCompile(`\[\{([\s\S]*?)\}\]`) // Data data for the template type Data map[string]interface{}