changeset 456:ceb3fd33adf1

add String.matches
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 05 May 2015 22:58:23 -0600
parents 34a4ed3597ea
children 0ca5d1d6250b
files core/src/luan/modules/String.luan core/src/luan/modules/StringLuan.java
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/src/luan/modules/String.luan	Tue May 05 21:25:35 2015 -0600
+++ b/core/src/luan/modules/String.luan	Tue May 05 22:58:23 2015 -0600
@@ -12,6 +12,7 @@
 len = StringLuan.len
 lower = StringLuan.lower
 match = StringLuan.match
+matches = StringLuan.matches
 rep = StringLuan.rep
 reverse = StringLuan.reverse
 sub = StringLuan.sub
--- a/core/src/luan/modules/StringLuan.java	Tue May 05 21:25:35 2015 -0600
+++ b/core/src/luan/modules/StringLuan.java	Tue May 05 22:58:23 2015 -0600
@@ -253,4 +253,8 @@
 		return null;
 	}
 
+	public static boolean matches(String s,String pattern) {
+		return s.matches(pattern);
+	}
+
 }