diff src/luan/modules/String.luan @ 1422:e48290f3d9fb

better quoting
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 17 Nov 2019 16:28:51 -0700
parents f5368cd8c056
children a076e89a2879
line wrap: on
line diff
--- a/src/luan/modules/String.luan	Sat Oct 26 22:28:46 2019 -0600
+++ b/src/luan/modules/String.luan	Sun Nov 17 16:28:51 2019 -0700
@@ -10,10 +10,11 @@
 String.format = StringLuan.format
 String.gmatch = StringLuan.gmatch
 String.gsub = StringLuan.gsub
-String.literal = Pattern.quote
 String.lower = StringLuan.lower
 String.match = StringLuan.match
 String.matches = StringLuan.matches
+String.regex_quote = Pattern.quote
+String.literal = String.regex_quote  -- tmp
 String.rep = StringLuan.rep
 String.reverse = StringLuan.reverse
 String.split = StringLuan.split