Skip to content

Commit

Permalink
heroic fix so to let mapstore query using '/' in equals
Browse files Browse the repository at this point in the history
  • Loading branch information
cmangeat committed Oct 14, 2023
1 parent 60b7230 commit ae9ce88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public Object visit(PropertyIsEqualTo filter, Object extraData) {
String dataPropertyValue = stack.pop();
String dataPropertyName = stack.pop();

final String filterEqualTo = String.format(templateMatch, dataPropertyName, dataPropertyValue);
final String filterEqualTo = String.format(templateMatch, dataPropertyName, dataPropertyValue.replaceAll("\\/", "\\\\\\\\/"));
stack.push(filterEqualTo);

return this;
Expand Down Expand Up @@ -463,7 +463,7 @@ public Object visit(PropertyIsNil filter, Object extraData) {

/**
* Fills out the templateSpatial.
*
*
* @param shapeType For example "bbox" or "polygon".
* @param coords The coordinates in the form needed by shapeType.
* @param relation Spatial operation, like "intersects".
Expand Down

0 comments on commit ae9ce88

Please sign in to comment.