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

Commit 1540bfd2 authored by Felipe Leme's avatar Felipe Leme
Browse files

Fixed CharSequenceTransformation to use find() instead of matches().

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.CharSequenceTransformationTest#testReplaceAllByOne
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 65459117

Change-Id: Ib5ff31b6b12e5583e736a0593e941e1556ae7384
parent 3f9f9933
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ public final class CharSequenceTransformation extends InternalTransformation imp
            }
            try {
                final Matcher matcher = field.first.matcher(value);
                if (!matcher.matches()) {
                if (!matcher.find()) {
                    if (sDebug) Log.d(TAG, "match for " + field.first + " failed on id " + id);
                    return;
                }