feat: add support for release assets with multiple spaces within the name (#518)

* extracted the asset name alignment to utils, added unit tests

* fixed formatting issues
This commit is contained in:
Eugen Dukhin
2024-11-11 21:12:02 +01:00
committed by GitHub
parent b019a5bbb6
commit 98daca21d1
3 changed files with 23 additions and 2 deletions

View File

@ -105,3 +105,7 @@ export const unmatchedPatterns = (patterns: string[]): string[] => {
export const isTag = (ref: string): boolean => {
return ref.startsWith("refs/tags/");
};
export const alignAssetName = (assetName: string): string => {
return assetName.replace(/ /g, ".");
};