mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-20 03:45:02 +00:00
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:
parent
b77c16086c
commit
9fd42d1d48
@ -133,7 +133,8 @@ public class RestTestsFromSnippetsTask extends SnippetsTask {
|
|||||||
*/
|
*/
|
||||||
void handleSnippet(Snippet snippet) {
|
void handleSnippet(Snippet snippet) {
|
||||||
if (RestTestsFromSnippetsTask.isConsoleCandidate(snippet)) {
|
if (RestTestsFromSnippetsTask.isConsoleCandidate(snippet)) {
|
||||||
unconvertedCandidates.add(snippet.path.toString())
|
unconvertedCandidates.add(snippet.path.toString()
|
||||||
|
.replace('\\', '/'))
|
||||||
}
|
}
|
||||||
if (BAD_LANGUAGES.contains(snippet.language)) {
|
if (BAD_LANGUAGES.contains(snippet.language)) {
|
||||||
throw new InvalidUserDataException(
|
throw new InvalidUserDataException(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user