Skip to content

Commit

Permalink
escaped dot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
katerina20 committed Nov 16, 2023
1 parent 130db89 commit 2a6f5e6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/crowdin/cli/utils/PlaceholderUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public void testDest() throws IOException {
}

@Test
@DisabledOnOs(OS.WINDOWS)
public void testDestAndUnaryAsterisk() throws IOException {
PropertiesWithFiles pb = NewPropertiesWithFilesUtilBuilder
.minimalBuiltPropertiesBean(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ static Stream<Arguments> testFilterProjectFiles_noPreserveHierarchy_noIgnores()

@ParameterizedTest
@MethodSource
@DisabledOnOs(OS.WINDOWS)
public void testFilterProjectFiles_noPreserveHierarchy_wIgnores(
List<String> filePaths, String sourcePattern, List<String> ignorePatterns, List<String> expected
) {
Expand Down Expand Up @@ -384,7 +383,6 @@ private static Stream<Arguments> testContainsParameter() {

@ParameterizedTest
@MethodSource
@DisabledOnOs(OS.WINDOWS)
public void testReplaceUnaryAsterisk(String sourcePattern, String projectFile, String expected) {
assertPathsEqualIgnoringSeparator(SourcesUtils.replaceUnaryAsterisk(sourcePattern, projectFile), expected);
}
Expand Down

0 comments on commit 2a6f5e6

Please sign in to comment.