Skip to content

Apply a stricter regex when scanning DeepLinkRegistry#30

Merged
felipecsl merged 1 commit intoairbnb:masterfrom
MichaelEvans:stricter_regex
Jul 17, 2015
Merged

Apply a stricter regex when scanning DeepLinkRegistry#30
felipecsl merged 1 commit intoairbnb:masterfrom
MichaelEvans:stricter_regex

Conversation

@MichaelEvans
Copy link
Copy Markdown
Contributor

Right now, the regex scheme set up in DeepLinkEntry allows for DeepLinkRegistry.parseUri to return early if there's a subset scheme already registered.

IE:

  • IndexActivity -> "foo://items"
  • ShowActivity -> "foo://items/123"

Appending the $ at the end of the regex should ensure that the whole String matches, rather than just the beginning.

@felipecsl
Copy link
Copy Markdown
Collaborator

thank you!

felipecsl added a commit that referenced this pull request Jul 17, 2015
Apply a stricter regex when scanning DeepLinkRegistry
@felipecsl felipecsl merged commit 0f801e2 into airbnb:master Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants