Browse Source

Adjusted formatting

pull/8/head
linton 13 years ago
parent
commit
8aadf1d5b8
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/JsonPath.java

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

@ -104,7 +104,7 @@ public class JsonPath {
public JsonPath(String jsonPath, Filter[] filters) { public JsonPath(String jsonPath, Filter[] filters) {
if (jsonPath == null || if (jsonPath == null ||
jsonPath.trim().length()==0 || jsonPath.trim().length() == 0 ||
jsonPath.matches("[^\\?\\+\\=\\-\\*\\/\\!]\\(")) { jsonPath.matches("[^\\?\\+\\=\\-\\*\\/\\!]\\(")) {
throw new InvalidPathException("Invalid path"); throw new InvalidPathException("Invalid path");

Loading…
Cancel
Save