Mercurial Hosting > luan
changeset 1555:1b397a949791
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 06 Oct 2020 20:53:43 -0600 |
parents | 83249ce59d13 |
children | 52241b69c339 |
files | src/luan/modules/StringLuan.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/modules/StringLuan.java Tue Oct 06 19:36:57 2020 -0600 +++ b/src/luan/modules/StringLuan.java Tue Oct 06 20:53:43 2020 -0600 @@ -127,6 +127,7 @@ public static LuanFunction gmatch(String s,String pattern) throws LuanException { Utils.checkNotNull(s); + Utils.checkNotNull(pattern,2); final Matcher m = Pattern.compile(pattern).matcher(s); return new LuanFunction(false) { @Override public Object call(Object[] args) {