editorconfig/editorconfig-core-js — pull request #11 by fankangtai (2014-11-14 09:30:50+00:00)
Title: fix filepath might never reach the root path

The `filepath` might never reach root path if the `options.root` is wrong.

Or in Widows, root is not `/` in file path. Like the problem happen in the editorconfig plugin of Atom here: https://github.com/sindresorhus/atom-editorconfig/issues/19#issuecomment-63010338

So `while` should stop when there's no parent directory.