diff --git a/src/main/java/com/crowdin/cli/utils/PlaceholderUtil.java b/src/main/java/com/crowdin/cli/utils/PlaceholderUtil.java index c08527197..6ba403d2b 100644 --- a/src/main/java/com/crowdin/cli/utils/PlaceholderUtil.java +++ b/src/main/java/com/crowdin/cli/utils/PlaceholderUtil.java @@ -236,7 +236,7 @@ public static String formatSourcePatternForRegex(String toFormat) { } toFormat = toFormat .replace(ESCAPE_DOT, ESCAPE_DOT_PLACEHOLDER) - .replace(DOT, ESCAPE_DOT) + .replace(DOT, "\\.") .replace(ESCAPE_DOT_PLACEHOLDER, ESCAPE_DOT) .replace(ESCAPE_QUESTION, ESCAPE_QUESTION_PLACEHOLDER) diff --git a/src/test/java/com/crowdin/cli/commands/actions/DownloadSourcesActionTest.java b/src/test/java/com/crowdin/cli/commands/actions/DownloadSourcesActionTest.java index 80e55a188..a37d0ed45 100644 --- a/src/test/java/com/crowdin/cli/commands/actions/DownloadSourcesActionTest.java +++ b/src/test/java/com/crowdin/cli/commands/actions/DownloadSourcesActionTest.java @@ -84,7 +84,6 @@ public void testDest() throws IOException { } @Test - @DisabledOnOs(OS.WINDOWS) public void testDestAndUnaryAsterisk() throws IOException { PropertiesWithFiles pb = NewPropertiesWithFilesUtilBuilder .minimalBuiltPropertiesBean( diff --git a/src/test/java/com/crowdin/cli/commands/functionality/SourcesUtilsTest.java b/src/test/java/com/crowdin/cli/commands/functionality/SourcesUtilsTest.java index 30ee27e28..2dc591953 100644 --- a/src/test/java/com/crowdin/cli/commands/functionality/SourcesUtilsTest.java +++ b/src/test/java/com/crowdin/cli/commands/functionality/SourcesUtilsTest.java @@ -289,7 +289,6 @@ static Stream testFilterProjectFiles_noPreserveHierarchy_noIgnores() @ParameterizedTest @MethodSource - @DisabledOnOs(OS.WINDOWS) public void testFilterProjectFiles_noPreserveHierarchy_wIgnores( List filePaths, String sourcePattern, List ignorePatterns, List expected ) { @@ -384,7 +383,6 @@ private static Stream testContainsParameter() { @ParameterizedTest @MethodSource - @DisabledOnOs(OS.WINDOWS) public void testReplaceUnaryAsterisk(String sourcePattern, String projectFile, String expected) { assertPathsEqualIgnoringSeparator(SourcesUtils.replaceUnaryAsterisk(sourcePattern, projectFile), expected); }