From 60ba2ac084f7450ed3124b1161a2e9fbff24b070 Mon Sep 17 00:00:00 2001 From: vadimt Date: Wed, 17 Nov 2021 11:06:09 -0800 Subject: [PATCH] Recognizing Launcher builds consisting only of digits Bug: 206687633 Test: online regex tools Change-Id: Ia6155f22fb9a0eba3beb6edb607f44f901629330 --- .../src/com/android/launcher3/util/rule/TestStabilityRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/com/android/launcher3/util/rule/TestStabilityRule.java b/tests/src/com/android/launcher3/util/rule/TestStabilityRule.java index de36d5f1b5..f33a50ae5a 100644 --- a/tests/src/com/android/launcher3/util/rule/TestStabilityRule.java +++ b/tests/src/com/android/launcher3/util/rule/TestStabilityRule.java @@ -41,7 +41,7 @@ public class TestStabilityRule implements TestRule { Pattern.compile("^(" + "(?(BuildFromAndroidStudio|" + "([0-9]+|[A-Z])-eng\\.[a-z]+\\.[0-9]+\\.[0-9]+))|" - + "(?[A-Z]([a-z]|[0-9])*)" + + "(?([A-Z][a-z]*[0-9]*|[0-9]+)*)" + ")$"); private static final Pattern PLATFORM_BUILD = Pattern.compile("^("