simplify the regex slightly
@@ -396,6 +396,6 @@ export function getElementCoordinates(element: HTMLElement) {
* make sure we're querying for the same version of paper data as the paper that was opened?
*/
export function extractArxivId(url: string): string | undefined {
- const matches = url.match(/arxiv\.org\/pdf\/(.*)(?:\.pdf).*$/) || [];
+ const matches = url.match(/arxiv\.org\/pdf\/(.*)(?:\.pdf)/) || [];
return matches[1];
}
