Skip to content
Snippets Groups Projects
Commit 8690dccc authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Do not handle single keys as numbers

This is a workaround when a session keyword is entered as a single key
parent 80327826
No related merge requests found
......@@ -98,9 +98,6 @@ public class NovaView extends View {
}
private String quote(String string) {
if (isNumber(string)) {
return encode(string);
}
return encode("\"" + string + "\"");
}
......
......@@ -97,13 +97,6 @@ public class NovaViewTest {
assertEncodedEquals("key", "[\"foo\",\"bar\",2]", v.getQueryString());
}
@Test
public void singleKeysShouldNotEnquoteNumbers() {
NovaView v = new NovaView(null);
v.setKey("2");
assertEncodedEquals("key", "2", v.getQueryString());
}
@Test
public void singleArrayKeysShouldNotEnquoteNumbers() {
NovaView v1 = new NovaView(null);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment