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

Basepath (commonprefix) yields incorrect result when folders start with same letters #124

Open
RonaldTreur opened this issue Oct 28, 2014 · 0 comments

Comments

@RonaldTreur
Copy link
Collaborator

Passing along files:
src/styles/main
src/styles/modules

yields the following (incorrect) basePath:
/absolute/path/src/styles/m

Suffice to say this is not correct and breaks the execution right away on fs.statSync(options.basePath)

RonaldTreur added a commit to RonaldTreur/styledocco that referenced this issue Oct 28, 2014
By making sure the common path ends with a path separator, we know we end up with an actual valid base path.
RonaldTreur added a commit to RonaldTreur/styledocco that referenced this issue Dec 1, 2014
RonaldTreur added a commit to RonaldTreur/styledocco that referenced this issue Dec 1, 2014
This was referenced Jan 13, 2015
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

No branches or pull requests

1 participant