mirror of
https://github.com/bitwarden/android.git
synced 2026-03-09 03:33:36 -05:00
Regex matching not working #1938
Open
opened 2025-11-26 23:02:16 -06:00 by GiteaMirror
·
9 comments
No Branch/Tag Specified
main
crowdin-pull
PM-33266-crashlytics-bug
PM-32123/cookie-sync-error-message
PM-29861-update-overflow-content-description
PM-33227/clear-cookies-debug-button
update-agp
PM-26059-remove-cipher-key-encryption-flag
remove-remember-viewmodel
PM-29871-external-links
PM-29673/flight-recorder-export-header-info
renovate/lock-file-maintenance
sdlc/sdk-update
release/2026.3-rc48
PM-24380/flight-recorder-redact-hostname
release/2026.2-rc47
PM-32714/fallback-to-web-vault-host
pr-6572
PM-28834/setting-app-layout-horizonos
PM-26896-autofill-fix
vvolkgang/process-release-notes-v2
PM-26577-app-links-support
release/2026.2-rc46
release/2026.1-rc45
PM-30644/added-logs-for-debug
PM-30644/quicktile-nav-not-showing-migration
minor-gradle-updates
release/2026.1-rc42
release/2026.1-rc44
release/2026.1-rc43
PM-28834/set-landscape-on-horizonos-devices
context-rules
devclarity/update-code-review-command
PM-20026/force-ltr-passwords-and-codes
release/2025.12-rc41
cmcg/testCoverage
claude-skill/creating-feature-flags
PM-29014/talkback-support-for-passwords
release/2025.12-rc40
BRE-1305/publish_test
accept-user-certs
autofill-permissions
release/2025.11-rc39
PM-22479/check-all-certificates-validate-asset-links
release/2025.10-rc38
agalles/android-latest
optimize-test-workflows
tier2-test-sharding
retro-agent
PM-27001/skip-account-selection-only-one-exists-cxp
release/2025.10-rc37
agalles/test-1118
release/2025.10-rc36
PM-20593-token-refresh
QA-1126b/adding-native-sanity-test
release/2025.9-rc35
pm-25933/sdk-update-password
release/2025.9-rc34
release/2025.8-rc33
agalles/20250821-release
debug-release-issues
pm-24249-allow-automated-prs-for-sdk-updates
release/2025.8-rc32
release/WORKFLOW-TEST-2025.8-rc28
agalles/20250807release
release/2025.07-rc25
release/hotfix-v2025.7.0-bwa
pm-23311/export-vault-policy-bypass
release/2025.07-rc24
authenticator-pm-sync-flags-issue
ps/implement-sdk-repository-example
release/hotfix-v2025.6.0-bwpm
release/2025.06-rc21
agalles/automate-android-fastlane-patch
release/2025.05-rc20
release/2025.04-rc19
languages/basque
release/2025.03-rc19
update-readme
qrcode/feature
innovation/archive/pm-19153-archive-items
qrcode/2-ui-fields
qrcode/1-page
hold-on-biometric-prompt-alternative
release-notes-process
release/2025.02-rc16
bwa-monorepo
PM-8223/new-device-verification-ux-improvements
pm-18451/exempt-from-policies
test-bwa
cs-workaround-linked-0-copy
release/2025.01-rc15
release/2025.01-rc14
release/2024.12-rc13
pm-16670/sync-leave-notice
821
PM-16695/backport-lean-more-new-device-verification
km/15084-testing
release/hotfix-v2024.11.7
release/2024.11-rc1
pm-11304/collection-add-item-button
PM-14241/disabling-logs-app-crash
poc/offline-editing
new-version-calc
pm-11649/expired-link-services
pm-6702/add-feature-flag
pm-6702/email-verification-feature
pm-9933/marketing-copy-update
pm-6702/registration-flows
update-templates
pm-6701/email-verification-selfhost-registration
v2026.2.1-bwpm
v2026.2.1-bwa
v2026.2.0-bwpm
v2026.2.0-bwa
v2026.1.1-bwa
v2026.1.1-bwpm
temp-test
v2026.1.0-bwpm
v2026.1.0-bwa
v2025.12.1-bwa
v2025.12.1-bwpm
v2025.12.0-bwa
v2025.12.0-bwpm
v2025.11.1-bwpm
v2025.11.1-bwa
v2025.11.0-bwpm
v2025.11.0-bwa
v2025.10.1-bwa
v2025.10.1-bwpm
v2025.10.0-bwa
v2025.10.0-bwpm
v2025.9.1-bwa
v2025.9.1-bwpm
v2025.9.0-bwa
v2025.9.0-bwpm
v2025.8.1-bwa
v2025.8.1-bwpm
v2025.8.0-bwa
v2025.8.0-bwpm
v2025.7.2-bwa
v2025.7.2-bwpm
v2025.7.1-bwa
v2025.7.1-bwpm
v2025.7.0-bwa
v2025.7.0-bwpm
v2025.6.1-bwpm
v2025.6.0-bwa
v2025.6.0-bwpm
v2025.1.0-bwa
v2025.5.0-bwa
v2025.5.0-bwpm
v2025.5.999
2025.4.0
v2025.4.0
untagged-4731eaadac73f3dfbbb8
v2025.3.0
v2025.2.0
untagged-815a165c5d70ffe75bc7
v2025.1.2
v2025.1.1
v2025.1.0
v2024.12.0
untagged-5a76b6392a4c8998c63a
v2024.11.7
v2024.11.6
v2024.11.5
v2024.11.4
v2024.11.3
v2024.11.2
v2024.11.1
v2024.11.0
v2024.10.2
v2024.10.1
v2024.10.0
v2024.9.0
v2024.8.1
v2024.8.0
v2024.7.3
v2024.7.2
v2024.7.1
v2024.7.0
v2024.6.1
v2024.6.0
v2024.5.1
v2024.4.1
v2024.4.2
v2024.4.0
v2024.3.3
v2024.3.1
v2024.3.0
v2024.2.1
v2024.2.0
v2024.1.1
v2024.1.0
v2023.12.0
v2023.10.0
v2023.9.2
maui-single-project-android
v2023.9.1
v2023.9.0
v2023.8.0
v2023.7.0
v2023.5.0
v2023.4.0
v2023.3.2
v2023.3.1
v2023.3.0
v2023.2.0
v2023.1.0
v2022.11.0
v2022.10.0
v2022.9.1
v2022.9.0
v2022.8.0
v2022.6.2
v2022.6.1
v2022.6.0
v2022.05.0
v2.18.0
v2.17.0
v2.16.4
v2.16.3
v2.16.2
v2.16.1
v2.15.0
v2.14.2
v2.14.1
v2.14.0
v2.13.0
v2.12.0
v2.11.3
v2.11.2
v2.11.1
v2.11.0
v2.10.0
v2.9.1
v2.9.0
v2.8.2
v2.8.1
v2.8.0
v2.7.2
v2.7.0
v2.6.1
v2.6.0
v2.5.6
v.2.5.5
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.1
v2.5.0
v2.4.3
v2.4.2
v2.4.1
v2.4.0
v2.3.1
v2.3.0
v2.2.8
v2.2.7
v2.2.6
v2.2.2
v2.2.1
v2.2.0
v2.1.2
v2.1.0
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v1.22.1
v1.22.0
v1.21.0
v1.20.0
v1.19.0
v1.18.1
v1.18.0
v1.17.0
v1.16.0
v1.15.2
v1.15.1
v1.15.0
v1.14.4
v1.14.1
v1.14.0
v1.13.0
v1.12.2
v1.12.1
v1.12.0
v1.11.1
v1.11.0
v1.10.0
v1.9.0
v1.8.1
v1.8.0
v1.7.0
v1.6.5
v1.6.1
v1.6.0
v1.5.1
v1.5.0
v1.4.4
v1.4.3
v1.4.0
v1.3.0
v1.2.1
v1.2.0
v1.1.0
v1.0.0
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/android#1938
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Araxeus on GitHub (Jul 18, 2024).
Bitwarden Beta
Steps To Reproduce
I have tested 2 different regexes on different domains, both work on web, and with the old android version, but fail on beta build
Expected Result
autocomplete works
Actual Result
autocomplete doesnt work
Screenshots or Videos
No response
Additional Context
No response
Build Version
2024.7.1-beta (18876)
Environment Details
Issue Tracking Info
@sammbw commented on GitHub (Jul 18, 2024):
Hi there,
I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below. If you are able to provide the regex you used, as well as an example URL, that would be very helpful!
Thanks!
@Araxeus commented on GitHub (Jul 19, 2024):
Ok the exact regex that doesnt work for me is
^https:\/\/operate-pr-\d+\.onrender\.com\/login$ill once again say it works on all apps but the android beta
here is the exact setup:
if i go to
https://operate-pr-12.onrender.com/loginit doesnt match ONLY on the android beta(those
-pr- .onrenderwebsites go to sleep after 15min of unused, and it takes 2min to wakeup if it was asleep when you make a request or navigate to it)@Araxeus commented on GitHub (Aug 2, 2024):
On Chrome (desktop with extension):
On Android Beta:
@Araxeus commented on GitHub (Aug 2, 2024):
ok well I just realized whats causing this issue:
https://operate-pr-25.onrender.com)https://operate-pr-25.onrender.com/login).onrender.com(which doesnt makes sense really)This is still a bug IMO because users would expect the android app and the browser extension to behave the same way
I've fixed the issue for my usecase by making the
/loginpart at the end optional in the regex:@segln commented on GitHub (Oct 30, 2024):
Thank you for sharing a temporary solution. I'm experiencing same issues with this bug.
@benkap commented on GitHub (Dec 18, 2024):
When using a custom port number the workaround does not work (and neither does
Host,Base-Domain,Starts-with,Exact, orRegular expression) on Andriod client@vincentkoevoets commented on GitHub (Jan 4, 2025):
That's a +1 for me. I have not found a single consistent way of matching on both Chrome on desktop and Android. It's frustrating. I found out that on Chrome on Android, the http(s):// of my urls seems to be cut of by Chrome. So, I thought regex is the way to go. This matches on desktop:
(http(s)?\:\/\/)?10\.50\.30\.1\:29546.*but not on Android. Notice the http(s):// is already optional to account for the behaviour on Android. Many of my services run on the same IP but on a different port, so I see no other way of matching. "Starts with" also does not work just like the rest mentioned by @benkap. Other issues about the same problem seem to bleed to death, so I hope this one will get noticed by the devs.@vtruong68 commented on GitHub (Jan 17, 2025):
This is broken for me on Android as well. I use the regex
192.168.1.12[^:]to access my server without hitting other services on the server on other ports (e.g.192.168.1.12:8080). This works fine on desktop but isn't picked up when I visit192.168.1.12on my phone.@lk-vila commented on GitHub (Jul 3, 2025):
What bothers me is the different behavior between the matching on the android app and on the browser extension.
I use regex because when I set the URI to
domain.com, I want it to suggest the password if I enter domain.com or sub.domain.com, and when I set the URI tosub.domain.com, I want it to suggest it only when I enter sub.domain.com. Host option makes the first case not work and Base domain option makes the second case not work. I really think there should be an option for it, as it's a really simple and desirable behavior, but there isn't so I use regex.The things is that, on the browser, if I set the URI to
domain.comit'll match both domain.com and sub.domain.com. If I set it tosub.domain.comit'll match only sub.domain.com. This is great, it's simple and it works. But on android, it only works if I set it to.*domain\.com.*and.*sub.domain\.com.*. I know, this is regex, but the problem is that I came from KeePass, where the matching I explained was the default behavior, and I have 400+ entries already, which I would need to edit to make it work on android.I think the regex matching on android should work like the browser extension one does or, better yet, there should be an autofill option for the behavior I explained above.