Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Faulty snippet detection on GitHub issues #771

@chrismwendt

Description

@chrismwendt

It looks like this code assumes that the first <a> tag within a comment that links to a URL that can be parsed by getGitHubState(anchor.href) is a snippet, but in that issue it's actually a link to a commit.

image

image

One solution is to not stop after the first is found, and to tighten the URL regex.

Metadata

Metadata

Assignees

Labels

browser-extensionbugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.githubIssues that occur with GitHub as code host

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions