Skip to content

Multi-level directories are out of order because of array.reverse() #1

Merged
merged 1 commit into from Apr 25, 2013

2 participants

@jkrehm
jkrehm commented Apr 25, 2013

Because array.reverse() affects the array and not just the result, the split array was out of order and generated incorrect paths when more than one level exists, e.g. a/b/index.dust became b/a/index.js. I just added a second .reverse().

@jkrehm jkrehm Reverse the split path array a second time to put it back in the corr…
…ect order (so multi-level directory structures are processed correctly).
a6c5700
@chrisdew chrisdew merged commit f36ad4c into chrisdew:master Apr 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.