Skip to content

fix: solve some of the problems with snippets and languages #605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

yrobla
Copy link
Contributor

@yrobla yrobla commented Jan 16, 2025

Closes: #599

Comment on lines 126 to 127
#  just correct the typescript exception
if lang == "typescript":
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it might be worth doing this quickly, as we may have to do more of these mappings:

lang_map = {
    "typescript": "javascript"
}
lang = lang_map.get(lang, lang)

lukehinds
lukehinds previously approved these changes Jan 16, 2025
Copy link
Contributor

@lukehinds lukehinds left a comment

Choose a reason for hiding this comment

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

Quick suggestion, but optional if it slows you done.

@yrobla yrobla merged commit 8106c53 into main Jan 16, 2025
2 checks passed
@yrobla yrobla deleted the fix_package_detection branch January 16, 2025 09:19
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.

Not detecting malicious npm package
2 participants