Skip to content

Commit

Permalink
[#74] String.replaceAll() called with "." as regex
Browse files Browse the repository at this point in the history
System.out.println(".klab.".replaceAll(".", "_"));   // ______
System.out.println(".klab.".replaceAll("\\.", "_")); // _klab_
  • Loading branch information
iperdomo committed May 18, 2023
1 parent 9c0769f commit 6cee006
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public Pair<Map<String, Boolean>, Boolean> getBooleanCache(Urn urn, String cache
}

private String sanitize(String urn) {
return urn.replaceAll(":", "__").replaceAll(".", "_");
return urn.replaceAll(":", "__").replaceAll("\\.", "_");
}

private void makeTiles(Urn urn, Builder builder, IGeometry geometry, IContextualizationScope context) {
Expand Down

0 comments on commit 6cee006

Please sign in to comment.