Moved root paths case before split() so it's not testing against an array #3

Merged
merged 1 commit into from Jan 25, 2012

Projects

None yet

2 participants

@tbuckley

urlNameHelper('', '') should return 'root' but instead returns '' since the split('/') command returns an array that is then tested against '' and '/'; moving the root test before the split fixes the issue.

@1602 1602 merged commit c62ed55 into 1602:master Jan 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment