Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46019258 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Improving regex for detecting a local platform build

Platform build can now have versions line "eng.himans"

Bug: 187761685
Test: online regex verifier
Flag: NONE test change
Change-Id: I86b9324dfbbc36272215eae58af836e9a3741d70
parent 9c12d8ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ public class TestStabilityRule implements TestRule {
                    + ")$");
    private static final Pattern PLATFORM_BUILD =
            Pattern.compile("^("
                    + "(?<commandLine>eng\\.[a-z]+\\.[0-9]+\\.[0-9]+)|"
                    + "(?<commandLine>eng\\..+)|"
                    + "(?<presubmit>P[0-9]+)|"
                    + "(?<postsubmit>[0-9]+)"
                    + ")$");