From 460192588f53adf11f49a45d486453db3508a827 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Wed, 11 Sep 2024 10:39:31 -0700 Subject: [PATCH] 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 --- .../src/com/android/launcher3/util/rule/TestStabilityRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java b/tests/multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java index ad2d8c2413..6313cf02f7 100644 --- a/tests/multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java +++ b/tests/multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java @@ -47,7 +47,7 @@ public class TestStabilityRule implements TestRule { + ")$"); private static final Pattern PLATFORM_BUILD = Pattern.compile("^(" - + "(?eng\\.[a-z]+\\.[0-9]+\\.[0-9]+)|" + + "(?eng\\..+)|" + "(?P[0-9]+)|" + "(?[0-9]+)" + ")$");