-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Navigation] Fix deeplink domain parsing being case sensitive #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -422,7 +422,7 @@ public class NavDeepLink internal constructor( | |
| // specifically escape any .* instances to ensure | ||
| // they are still treated as wildcards in our final regex | ||
| val finalRegex = uriRegex.toString().replace(".*", "\\E.*\\Q") | ||
| pattern = Pattern.compile(finalRegex) | ||
| pattern = Pattern.compile(finalRegex, Pattern.CASE_INSENSITIVE) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ianhanniballake Since this is on the finalRegex, it is making the entire pattern including params case insensitive, but based on the test above, it looks like params still aren't matching, which is what we want. Wanted your thoughts on this method, vs always checking the domain in the lowercase or something similar. |
||
| } | ||
| if (mimeType != null) { | ||
| val mimeTypePattern = Pattern.compile("^[\\s\\S]+/[\\s\\S]+$") | ||
|
|
Uh oh!
There was an error while loading. Please reload this page.