Closed slightlytyler closed 6 years ago
This was my initial implementation but I had a suggestion to change it. (https://github.com/binygal/jest-runner-flowtype/pull/3#pullrequestreview-105438260)
I think that we can just extend the regex to support dot as part of file name (or directory) like that - (\.{1,2}|\/)?([A-z]|\/|-|\.)*\.js(x?)
What do you think?
@binygal I'm not familiar with the expected range of inputs but can try changing the RegEx. Figured the manual splitting would not be general enough to actually work 😉
The accepted range is a js/jsx file path, absolute or relative. Right now it accepts only files folders with letters or dash in the path. My suggestion adds the dot, you can take it and digits or whatever character that make sense in file/folder names.
@binygal ok I've updated it to use the pattern you suggested. If you think it's sufficient would love to get this merged 👍
This PR was created against the initial
branch 😃I've rebased it against master and pushed the changes.
@slightlytyler Thank you for contributing!
fixes #8
This might not be the best way to handle it, what do you think?