Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-830

FastDateParser could use \Q \E to quote regexes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.2
    • lang.time.*
    • None

    Description

      The escapeRegex method relies on knowing exactly what all the meta-characters are when excaping text. This is potentially fragile.

      It would be a lot simpler to use the \Q \E quoting mechanism.

      There would need to be special handling for unquote==true.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: