Skip to content

Commit 0a6ade8

Browse files
committed
escaped dot fix
1 parent eca7f41 commit 0a6ade8

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/main/java/com/crowdin/cli/utils/PlaceholderUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static String formatSourcePatternForRegex(String toFormat) {
236236
}
237237
toFormat = toFormat
238238
.replace(ESCAPE_DOT, ESCAPE_DOT_PLACEHOLDER)
239-
.replace(DOT, ESCAPE_DOT)
239+
.replace(DOT, "\\.")
240240
.replace(ESCAPE_DOT_PLACEHOLDER, ESCAPE_DOT)
241241

242242
.replace(ESCAPE_QUESTION, ESCAPE_QUESTION_PLACEHOLDER)

src/test/java/com/crowdin/cli/commands/actions/DownloadSourcesActionTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public void testDest() throws IOException {
8484
}
8585

8686
@Test
87-
@DisabledOnOs(OS.WINDOWS)
8887
public void testDestAndUnaryAsterisk() throws IOException {
8988
PropertiesWithFiles pb = NewPropertiesWithFilesUtilBuilder
9089
.minimalBuiltPropertiesBean(

src/test/java/com/crowdin/cli/commands/functionality/SourcesUtilsTest.java

-2
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ static Stream<Arguments> testFilterProjectFiles_noPreserveHierarchy_noIgnores()
289289

290290
@ParameterizedTest
291291
@MethodSource
292-
@DisabledOnOs(OS.WINDOWS)
293292
public void testFilterProjectFiles_noPreserveHierarchy_wIgnores(
294293
List<String> filePaths, String sourcePattern, List<String> ignorePatterns, List<String> expected
295294
) {
@@ -384,7 +383,6 @@ private static Stream<Arguments> testContainsParameter() {
384383

385384
@ParameterizedTest
386385
@MethodSource
387-
@DisabledOnOs(OS.WINDOWS)
388386
public void testReplaceUnaryAsterisk(String sourcePattern, String projectFile, String expected) {
389387
assertPathsEqualIgnoringSeparator(SourcesUtils.replaceUnaryAsterisk(sourcePattern, projectFile), expected);
390388
}

0 commit comments

Comments
 (0)