-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix: Add support for multiple extensions to Keygen publisher #6234
fix: Add support for multiple extensions to Keygen publisher #6234
Conversation
|
3e4e839
to
d4611b3
Compare
d4611b3
to
60fec8d
Compare
24e1c9e
to
f4de3d5
Compare
f4de3d5
to
cd44c24
Compare
88ccc8e
to
9da54bc
Compare
9da54bc
to
ba14a67
Compare
import * as _sanitizeFileName from "sanitize-filename" | ||
import * as path from "path" | ||
|
||
export function sanitizeFileName(s: string): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth noting that renaming this file may be a breaking change if anybody is relying on util/sanitizeFileName
. I assume it's meant to be internal, but ya know.
Many thanks, @ezekg! |
Matching multiple file extensions is tricky, but with a set heuristic, we can do it. I couldn't get the test env running (probably because I'm missing required env vars), but here's a repl I used to test.
Closes #6229.