Skip to content

Commit

Permalink
APIKIT-1825: Exchange API with files with exchange includes inside fa…
Browse files Browse the repository at this point in the history
…ils to scaffold (#440)
  • Loading branch information
dfmacias authored Feb 1, 2019
1 parent 68e843a commit 51aa77c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static String getFileName(final String apiSyncResource) {
}

public static boolean isExchangeModules(final String path) {
return path.startsWith(EXCHANGE_MODULES) || path.startsWith("/" + EXCHANGE_MODULES);
return EXCHANGE_PATTERN.matcher(path).find();
}

public static String getMainApi(String exchangeJson) {
Expand All @@ -45,7 +45,7 @@ public static String getMainApi(String exchangeJson) {
public static String toApiSyncResource(String s) {
String apiSyncResource = null;
Matcher exchangeMatcher = EXCHANGE_PATTERN.matcher(s);
if (exchangeMatcher.matches()) {
if (exchangeMatcher.find()) {
String groupId = exchangeMatcher.group(1);
String artifactId = exchangeMatcher.group(2);
String version = exchangeMatcher.group(3);
Expand Down

0 comments on commit 51aa77c

Please sign in to comment.