Skip to content

Navigation Menu

Sign in
Sign up
This repository was archived by the owner on Jan 14, 2020. It is now read-only.

fix targetPath regexp - #139

Open
samnight wants to merge 2 commits into
ream:master from
samnight:fix/target_path
Open

fix targetPath regexp #139
samnight wants to merge 2 commits into
ream:master from
samnight:fix/target_path

Conversation

@samnight

@samnight samnight commented Apr 17, 2019

Copy link
Copy Markdown

Directory name includes query params while generating route, but it shouldn't.

Comment thread lib/index.js Outdated
const { start, end } = await renderTemplate(context)
const targetPath = this.resolveOutDir(
`generated/${route.replace(/\/?$/, '/index.html')}`
`generated/${route.replace(/(\/?$|\/?\?.*$)/, '/index.html')}`

@IlyaSemenov IlyaSemenov Apr 17, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

shouldn't it rather be something like /\/?(\?.*)?$/

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, I will fix it.

Copy link
Copy Markdown
Contributor

@egoist I never worked with ream generator, please advise if the PR makes sense?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@IlyaSemenov IlyaSemenov IlyaSemenov left review comments
Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /