Mercurial Hosting > luan
comparison core/src/luan/modules/StringLuan.java @ 702:87970832a3c3
improve Http_test
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 04 May 2016 20:45:40 -0600 |
parents | b21d82ee5756 |
children | e1dfeddfbc7b |
comparison
equal
deleted
inserted
replaced
701:d0280c7fdc3a | 702:87970832a3c3 |
---|---|
231 } | 231 } |
232 } catch(NumberFormatException e) {} | 232 } catch(NumberFormatException e) {} |
233 return null; | 233 return null; |
234 } | 234 } |
235 | 235 |
236 public static boolean matches(String s,String pattern) { | 236 public static boolean matches(String s,String pattern) throws LuanException { |
237 Utils.checkNotNull(s); | |
237 return Pattern.compile(pattern).matcher(s).find(); | 238 return Pattern.compile(pattern).matcher(s).find(); |
238 } | 239 } |
239 | 240 |
240 } | 241 } |