Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
Signed-off-by: munishchouhan <[email protected]>
  • Loading branch information
munishchouhan committed May 31, 2024
1 parent b24894a commit ab1cd60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MetricsServiceImpl implements MetricsService {

static final private DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd")

static final private Pattern ORF_DATE_KEY_PATTERN = Pattern.compile('(builds|pulls|fusion)/o/([^/]+)/d/\\d{4}-\\d{2}-\\d{2}')
static final private Pattern ORG_DATE_KEY_PATTERN = Pattern.compile('(builds|pulls|fusion)/o/([^/]+)/d/\\d{4}-\\d{2}-\\d{2}')

@Inject
private MetricsCounterStore metricsCounterStore
Expand Down Expand Up @@ -139,7 +139,7 @@ class MetricsServiceImpl implements MetricsService {
}

protected static String extractOrgFromKey(String key) {
Matcher matcher = ORF_DATE_KEY_PATTERN.matcher(key)
Matcher matcher = ORG_DATE_KEY_PATTERN.matcher(key)
return matcher.matches() ? matcher.group(2) : "unknown"
}
}

0 comments on commit ab1cd60

Please sign in to comment.