Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 461 for regexp (0.2 seconds)

  1. src/test/java/org/codelibs/fess/job/ExecJobTest.java

        }
    
        // Test invalid regex in custom properties
        @Test
        public void test_customProperties_invalidRegex() {
            List<String> cmdList = new ArrayList<>();
    
            try {
                execJob.testAddFessCustomSystemProperties(cmdList, "[invalid(regex");
                fail("Should handle invalid regex");
            } catch (Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  2. build-conventions/src/main/java/org/elasticsearch/gradle/internal/checkstyle/SnippetLengthCheck.java

    import com.puppycrawl.tools.checkstyle.api.FileText;
    
    import java.io.File;
    import java.util.Arrays;
    import java.util.Iterator;
    import java.util.function.BiConsumer;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    /**
     * Checks the snippets included in the docs aren't too wide to fit on
     * the page.
     */
    public class SnippetLengthCheck extends AbstractFileSetCheck {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jun 10 23:06:44 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

         * @param key The condition key.
         * @param regex The regex pattern for the condition.
         */
        public void addCondition(final String key, final String regex) {
            final String value = conditionMap.get(key);
            if (StringUtil.isBlank(value)) {
                conditionMap.put(key, regex);
            } else {
                conditionMap.put(key, value + "|" + regex);
            }
        }
    
        @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBadMultiLangSnippets.java

                }
                throw new GradleException(sb.toString());
            }
        }
    
        private static final java.util.regex.Pattern SOURCE_LANG_PATTERN =
            java.util.regex.Pattern.compile(
                "^\\[\\s*source(?:%[\\w-]+)*\\s*,\\s*([\\w.+-]+)\\s*(?:,.*)?\\]$",
                java.util.regex.Pattern.CASE_INSENSITIVE
            );
    
        private void gatherBadSnippetsInFile(File file, Map<File, List<Error>> errors) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Aug 29 10:12:17 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/util/JvmUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.util;
    
    import java.util.Arrays;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    /**
     * Utility class for JVM-related operations.
     * This class provides methods for handling JVM options and version detection.
     */
    public final class JvmUtil {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/DependencyLicensesTask.java

    import java.util.HashSet;
    import java.util.LinkedHashMap;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.Set;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import java.util.stream.Collectors;
    
    /**
     * A task to check licenses for dependencies.
     * <p>
     * There are two parts to the check:
     * <ul>
     *   <li>LICENSE, NOTICE and SOURCES files</li>
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jul 26 12:16:14 GMT 2021
    - 14.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/crawler/rule/CrawlerRuleMimeTypePatternTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.crawler.rule;
    
    import java.util.regex.Pattern;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.junit.jupiter.api.Test;
    
    /**
     * Test class for MIME type patterns defined in crawler/rule.xml.
     * Verifies that regex patterns correctly match MIME types with special characters.
     *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  8. build-logic-commons/code-quality-rules/src/main/resources/codenarc/codenarc.xml

                <property name='regex' value='^[A-Z][\$a-zA-Z0-9]*$'/>
            </rule-config>
            <rule-config name='FieldName'>
                <property name='finalRegex' value='^[a-z][a-zA-Z0-9]*$'/>
                <property name='staticFinalRegex' value='^logger$|^[A-Z][A-Z_0-9]*$|^serialVersionUID$'/>
            </rule-config>
            <rule-config name='MethodName'>
                <property name='regex' value='^[a-z][\$_a-zA-Z0-9]*$|^.*\s.*$'/>
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.2K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

            // Test that MIME type patterns work correctly as regex
            // This verifies the fix for SVG thumbnail generation issue
            // where image/svg+xml was not matching due to unescaped + character
    
            // SVG MIME type - the + must be escaped in regex
            String svgMimetype = "image/svg+xml";
            String svgPatternWrong = "image/svg+xml"; // Wrong: + means "one or more" in regex
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  10. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/YamlRestCompatTestPluginFuncTest.groovy

                  task.addWarning("one", "warning1", "warning2")
                  task.addWarningRegex("two", "regex warning here .* [a-z]")
                  task.addAllowedWarning("added allowed warning")
                  task.addAllowedWarningRegex("added allowed warning regex .* [0-9]")
                  task.removeWarning("one", "warning to remove")
                  task.replaceIsTrue("value_to_replace", "replaced_value")
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 16.4K bytes
    - Click Count (0)
Back to Top