Mercurial Hosting > luan
changeset 1683:ea56e3b04c03
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 05 Jun 2022 12:44:38 -0600 |
parents | 97cc73664ca8 |
children | cfbecf7af56f |
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 Sun Jun 05 10:51:43 2022 -0600 +++ b/src/luan/modules/StringLuan.java Sun Jun 05 12:44:38 2022 -0600 @@ -233,6 +233,7 @@ public static String[] split(String s,String pattern,Integer limit) throws LuanException { Utils.checkNotNull(s); + Utils.checkNotNull(pattern,1); int n = limit==null ? -1 : limit; return s.split(pattern,n); }