Recognizing Launcher builds consisting only of digits

Bug: 206687633
Test: online regex tools
Change-Id: Ia6155f22fb9a0eba3beb6edb607f44f901629330
This commit is contained in:
vadimt
2021-11-17 11:06:09 -08:00
committed by Vadim Tryshev
parent e65c47e60f
commit 60ba2ac084

View File

@@ -41,7 +41,7 @@ public class TestStabilityRule implements TestRule {
Pattern.compile("^("
+ "(?<local>(BuildFromAndroidStudio|"
+ "([0-9]+|[A-Z])-eng\\.[a-z]+\\.[0-9]+\\.[0-9]+))|"
+ "(?<platform>[A-Z]([a-z]|[0-9])*)"
+ "(?<platform>([A-Z][a-z]*[0-9]*|[0-9]+)*)"
+ ")$");
private static final Pattern PLATFORM_BUILD =
Pattern.compile("^("