Skip to content

Commit

Permalink
fix: Allow parsing of share URLs on abstract.com domain (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-j-castro authored Jan 29, 2020
1 parent a2c5b31 commit 8c2e7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Iframe = styled.iframe({
});

function parseShareURL(url: string): string | void {
return url.split("share.goabstract.com/")[1];
return url.split(/share.(?:go)?abstract.com\//)[1];
}

export function inferShareId(
Expand Down

1 comment on commit 8c2e7fc

@vercel
Copy link

@vercel vercel bot commented on 8c2e7fc Jan 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.