Skip to content

Commit

Permalink
514082: Allow Marketplace REST API to return a list of favourite lists
Browse files Browse the repository at this point in the history
Make the /favorites segment of a favorites list URL optional.

Both of these will work now:
https://marketplace.eclipse.org/user/creckord/favorites
https://marketplace.eclipse.org/user/creckord

Bug: 514082
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=514082
  • Loading branch information
creckord committed May 31, 2017
1 parent a4795f0 commit 398967d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public abstract class MarketplaceUrlHandler {

private static final Pattern NODE_URL_PATTERN = Pattern.compile("(?:^|/)node/([^/#?]+)"); //$NON-NLS-1$

private static final Pattern FAVORITES_URL_PATTERN = Pattern.compile("(?:^|/)user/([^/#?]+)/favorites(/?[#?].*)?$"); //$NON-NLS-1$
private static final Pattern FAVORITES_URL_PATTERN = Pattern
.compile("(?:^|/)user/([^/#?]+)(/favorites)?([/#?].*)?$"); //$NON-NLS-1$

public static class SolutionInstallationInfo {

Expand Down

0 comments on commit 398967d

Please sign in to comment.