Skip to content

Expand shortname RegExp and avoid OS-specific path separators - #26

Merged
kfranqueiro merged 3 commits into
mainfrom
kgf-regexp-and-path-separator
Sep 29, 2026
Merged

kfranqueiro merged 3 commits into
mainfrom
kgf-regexp-and-path-separator

Conversation

@kfranqueiro

@kfranqueiro kfranqueiro commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

This expands the RegExp used to validate shortnames, to allow hyphen and period after the first character, and allow uppercase letters.

It also removes unnecessary instances of hard-coded path separators, and replaces any necessary instances with join or sep from the path module.

I also reordered some imports to group all ./ imports together, and replaced ' with " in any places in index.js where I was making changes anyway to match default prettier rules (there are still some remaining outliers). I later realized while editing utils.js that that file consistently used ' everywhere, whereas those cases seemed outnumbered in index.js; either way, settling on one or the other is a matter for a separate PR.

@kfranqueiro
kfranqueiro requested a review from deniak September 28, 2026 16:53
Comment thread utils.js

@deniak deniak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Except for the comment I made on the last-modified collector, the PR looks good! Thanks

@kfranqueiro
kfranqueiro force-pushed the kgf-regexp-and-path-separator branch from ded5ed5 to baf9fd6 Compare September 29, 2026 14:42
@kfranqueiro
kfranqueiro merged commit 6d80c86 into main Sep 29, 2026
2 checks passed
@kfranqueiro
kfranqueiro deleted the kgf-regexp-and-path-separator branch September 29, 2026 14:44
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.

2 participants