Java: condense '.' matching

This commit is contained in:
Jami Cogswell
2025-03-17 15:20:14 -04:00
parent 2f6696e8a8
commit b9f642f4aa

View File

@@ -428,7 +428,7 @@ private predicate replacesDirectoryCharactersWithSingleReplaceAll(
targetValue.matches("[%\\\\\\\\%]")
or
targetValue.matches("%|%") and
targetValue.matches("%" + ["\\.\\.", "[.][.]", "\\."] + "%") and
targetValue.matches("%" + ["[.]", "\\."] + "%") and
targetValue.matches("%/%") and
targetValue.matches("%\\\\\\\\%")
)