Skip to content

Commit bdbb325

Browse files
committed
🐛 windows build
1 parent b8ea6e1 commit bdbb325

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/dev/ebullient/convert/TestUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ public class TestUtils {
3838
public final static Path TOOLS_PATH_5E = PROJECT_PATH.resolve("sources/5etools-mirror-1.github.io/data");
3939
public final static Path HOMEBREW_PATH_5E = PROJECT_PATH.resolve("sources/5e-homebrew");
4040
public final static Path TOOLS_PATH_PF2E = PROJECT_PATH.resolve("sources/Pf2eTools/data");
41+
4142
public final static Path README = PROJECT_PATH.resolve("README.md").normalize().toAbsolutePath();
43+
static String USAGE = PROJECT_PATH.resolve("docs/usage").normalize().toAbsolutePath().toString();
4244

4345
// Obnoxious regular expression because markdown links are complicated:
4446
// Matches: [link text](vaultPath "title")
@@ -84,7 +86,7 @@ static void assertContents(Path path1, Path path2, boolean areEqual) throws IOEx
8486

8587
public static void checkMarkdownLinks(String baseDir, Path p, String line, List<String> errors) {
8688
Path absPath = p.normalize().toAbsolutePath();
87-
if (!absPath.toString().endsWith(".md") || absPath.equals(README) || absPath.toString().contains("docs/usage")) {
89+
if (!absPath.toString().endsWith(".md") || absPath.equals(README) || absPath.toString().startsWith(USAGE)) {
8890
// GH anchor links
8991
return;
9092
}

0 commit comments

Comments
 (0)