Allow hex format tags when parsing url templates

parent f3bd9339
...@@ -139,7 +139,7 @@ public final class UrlTemplate { ...@@ -139,7 +139,7 @@ public final class UrlTemplate {
String formatTag = DEFAULT_FORMAT_TAG; String formatTag = DEFAULT_FORMAT_TAG;
if (formatTagIndex != -1) { if (formatTagIndex != -1) {
formatTag = identifier.substring(formatTagIndex); formatTag = identifier.substring(formatTagIndex);
if (!formatTag.endsWith("d")) { if (!formatTag.endsWith("d") && !formatTag.endsWith("x")) {
formatTag += "d"; formatTag += "d";
} }
identifier = identifier.substring(0, formatTagIndex); identifier = identifier.substring(0, formatTagIndex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment