Fix allowed non-CONSOLE docs on windows

`\` vs `/` strikes again. This time I just convert all the `\` into
`/`. It isn't perfect but anyone who sees it'll figure out what is
up.
This commit is contained in:
Nik Everett 2016-09-19 22:43:17 -04:00
parent b77c16086c
commit 9fd42d1d48
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ public class RestTestsFromSnippetsTask extends SnippetsTask {
*/
void handleSnippet(Snippet snippet) {
if (RestTestsFromSnippetsTask.isConsoleCandidate(snippet)) {
unconvertedCandidates.add(snippet.path.toString())
unconvertedCandidates.add(snippet.path.toString()
.replace('\\', '/'))
}
if (BAD_LANGUAGES.contains(snippet.language)) {
throw new InvalidUserDataException(