- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getRegExPattern (0.12 sec)
-
platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/pattern/RegExpPatternStep.java
public RegExpPatternStep(String pattern, boolean caseSensitive) { this.pattern = Pattern.compile(getRegExPattern(pattern), caseSensitive?0:Pattern.CASE_INSENSITIVE); } @Override public String toString() { return "{regexp: " + pattern + "}"; } protected static String getRegExPattern(String pattern) { StringBuilder result = new StringBuilder();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/pattern/RegExpPatternStepTest.java
import static org.junit.Assert.assertTrue; public class RegExpPatternStepTest { private void testPatternEscape(String expected, String pattern) { assertEquals(expected, RegExpPatternStep.getRegExPattern(pattern)); } @Test public void testGetRegExpPattern() { testPatternEscape("literal", "literal"); testPatternEscape("dotq.", "dotq?"); testPatternEscape("star.*stuff", "star*stuff");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 3.3K bytes - Viewed (0)