Skip to content
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

Improve file naming and pathing #104

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Improve file naming and pathing #104

merged 1 commit into from
Feb 21, 2024

Conversation

acestronautical
Copy link
Collaborator

@acestronautical acestronautical commented Feb 19, 2024

Original pdf name will now correctly regex replace. The previous regex was lacking the g flag causing it to not remove the pdf extension if a space or comma was present.

File name conversion now replaces space, commas, and hypens to underscores.

Signature files will be placed into a signatures/ folder.

NEW:
Screenshot 2024-02-19 at 12 48 17 PM

OLD:
Screenshot 2024-02-19 at 12 52 27 PM

Copy link

github-actions bot commented Feb 19, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-02-21 01:26 UTC

Copy link
Owner

@momijizukamori momijizukamori left a comment

Choose a reason for hiding this comment

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

Looks largely good, just some very small things, and I want to make sure nobody has strong feelings against moving signatures into a subfolder, heh. I'll comment again once I've double-checked the regex stuff.

src/book.js Outdated Show resolved Hide resolved
src/book.js Outdated Show resolved Hide resolved
@acestronautical acestronautical force-pushed the filenaming branch 4 times, most recently from 633e1de to d0eff58 Compare February 19, 2024 23:58
Original pdf name will now correctly regex replace.
The previous regex was lacking the g flag causing it to not
remove the pdf extension if a space or comma was present.

File name conversion now replaces space, commas, and hypens to underscores.

Signature files will be placed into a signatures/ folder.
@momijizukamori momijizukamori merged commit 64cc5ad into main Feb 21, 2024
3 checks passed
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