aboutsummaryrefslogtreecommitdiff
path: root/core/text.nom
diff options
context:
space:
mode:
Diffstat (limited to 'core/text.nom')
-rw-r--r--core/text.nom3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/text.nom b/core/text.nom
index 37b8082..d09e6b5 100644
--- a/core/text.nom
+++ b/core/text.nom
@@ -44,6 +44,9 @@ compile [%expr for %match where %text matches %patt] to
return ret
end)()
+compile [%text matches %pattern] to
+ Lua value "(\(%text as lua expr):match(\(%pattern as lua expr)) and true or false)"
+
# Text literals
lua> ".."
do