Browse Source

Support for regex in inline filters (fixed test).

pull/60/head
Kalle Stenflo 10 years ago
parent
commit
f3b1753ad2
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/Criteria.java

2
json-path/src/main/java/com/jayway/jsonpath/Criteria.java

@ -247,7 +247,7 @@ public class Criteria implements Predicate {
if(target != null){ if(target != null){
res = pattern.matcher(target.toString()).matches(); res = pattern.matcher(target.toString()).matches();
} }
if(logger.isDebugEnabled()) logger.debug("[{}] {} [{}] => {}", right.toString(), name(), left.toString(), res); if(logger.isDebugEnabled()) logger.debug("[{}] {} [{}] => {}", right == null?"null":right.toString(), name(), left==null?"null":left.toString(), res);
return res; return res;
} }
@Override @Override

Loading…
Cancel
Save