Skip to content

Commit

Permalink
Fix regex for matching timestamp when the timezone offset is 0 (i.e. …
Browse files Browse the repository at this point in the history
…"Z").
  • Loading branch information
baron1405 committed Apr 17, 2024
1 parent c2f9745 commit fe9e027
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ plugins {
}

develocity {
// Upload scans when built by GitHub actions.
if (System.getenv("CI") != null) {
buildScan {
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
}
buildScan {
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"

// Upload scans when built by GitHub actions.
publishing.onlyIf { !System.getenv("CI").isNullOrEmpty() }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
public class PluginIntegTest {

private static final Pattern TIMESTAMPT_REGEX =
Pattern.compile("\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}-\\d{2}:\\d{2}");
Pattern.compile("\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:-\\d{2}:\\d{2}|Z)");

private File projectDir;

Expand Down

0 comments on commit fe9e027

Please sign in to comment.