Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

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

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":

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

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not detecting malicious npm package
2 participants