Skip to content

Fix handling of a URL which has a non-hash componenet in the place of a hash#37

Merged
XhmikosR merged 3 commits into
errorception:masterfrom
danielgroves:handle-url-without-hash
Aug 30, 2019
Merged

Fix handling of a URL which has a non-hash componenet in the place of a hash#37
XhmikosR merged 3 commits into
errorception:masterfrom
danielgroves:handle-url-without-hash

Conversation

@danielgroves
Copy link
Copy Markdown
Contributor

@danielgroves danielgroves commented Aug 30, 2019

In the event a URL contains a 7 or 32-character segment where there would normally be a hash and exception would be raised:

TypeError: Cannot read property '0' of null at Object.stripVersion (<omitted>/frontend/node_modules/staticify/index.js:90:61)

This PR fixes this by handling the possibility that the RegEx check would fail by completing a null check.

Comment thread index.js Outdated
Comment thread index.js Outdated
@XhmikosR
Copy link
Copy Markdown
Collaborator

@rakeshpai: LGTY?

@rakeshpai
Copy link
Copy Markdown
Member

LGTM 👍

@XhmikosR XhmikosR merged commit 2e3d59e into errorception:master Aug 30, 2019
@danielgroves danielgroves deleted the handle-url-without-hash branch September 17, 2019 14:27
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.

3 participants