changeset 1792:a5f62fe28b3e

regex.pattern
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 26 Dec 2023 20:57:19 -0700
parents f8f5c51f5b36
children a55a891a4f67
files src/luan/modules/Boot.luan
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/Boot.luan	Tue Dec 26 19:16:18 2023 -0700
+++ b/src/luan/modules/Boot.luan	Tue Dec 26 20:57:19 2023 -0700
@@ -52,6 +52,7 @@
 local function regex(pattern)
 	local regex = RegexLuan.new(pattern)
 	return {
+		pattern = pattern
 		java = regex
 		find = regex.find
 		gmatch = regex.gmatch