Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903273

Add comment for confusing pattern

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      This code in Tool.java deserves a comment

                  Pattern groupPtn = System.getProperty("os.name").matches("(?i)windows.*")
                          ? Pattern.compile("(|[^A-Za-z]|.{2,}):[A-Za-z0-9_,]+")
                          : Pattern.compile(".*:[A-Za-z0-9_,]+");

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: