From: gmungoc Date: Tue, 13 Sep 2016 08:02:10 +0000 (+0100) Subject: JAL-2119 use File.separator not "/" X-Git-Tag: Release_2_10_0~45^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=48ccd003e3b73c579c8d27c367868c631c22cc5c;p=jalview.git JAL-2119 use File.separator not "/" --- diff --git a/utils/HelpLinksChecker.java b/utils/HelpLinksChecker.java index 9463758..8085446 100644 --- a/utils/HelpLinksChecker.java +++ b/utils/HelpLinksChecker.java @@ -322,11 +322,11 @@ public class HelpLinksChecker * On Mac or Windows, file.exists() is not case sensitive, so do an * additional check with case sensitivity */ - int slashPos = href.lastIndexOf("/"); + int slashPos = href.lastIndexOf(File.separator); String expectedFileName = slashPos == -1 ? href : href .substring(slashPos + 1); String cp = hrefFile.getCanonicalPath(); - slashPos = cp.lastIndexOf("/"); + slashPos = cp.lastIndexOf(File.separator); String actualFileName = slashPos == -1 ? cp : cp .substring(slashPos + 1);