Skip to content

Commit

Permalink
Cope with hex valued IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoellnitz committed Apr 19, 2016
1 parent f02c909 commit 323f3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/org/tangram/components/DefaultHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void setMaxInlinedBlobSize(int maxInlinedBlobSize) {
} // setMaxInlinedBlobSize()


@LinkAction("/id_([A-Z][a-zA-Z]+:[0-9]+)/view_([a-zA-Z0-9]+)")
@LinkAction("/id_([A-Z][a-zA-Z]+:[0-9a-f]+)/view_([a-zA-Z0-9]+)")
public TargetDescriptor render(@LinkPart(1) String id, @LinkPart(2) String view, HttpServletRequest request, HttpServletResponse response) throws IOException {
Utils.setPrimaryBrowserLanguageForJstl(request);
LOG.debug("render() id={} view={}", id, view);
Expand All @@ -82,7 +82,7 @@ public TargetDescriptor render(@LinkPart(1) String id, @LinkPart(2) String view,
} // render()


@LinkAction("/id_([A-Z][a-zA-Z]+:[0-9]+)")
@LinkAction("/id_([A-Z][a-zA-Z]+:[0-9a-f]+)")
public TargetDescriptor render(@LinkPart(1) String id, HttpServletRequest request, HttpServletResponse response) throws IOException {
return render(id, null, request, response);
} // render()
Expand Down

0 comments on commit 323f3f0

Please sign in to comment.