Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4561

Content Protection: improve "default simple" regex

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • None
    • None
    • Content Protection
    • Critical
    • Content Protection: improve "default simple" regex

      I’d suggest to improve one of the default rules (integer default simple)

      Currently:

      /(\s|^|\()([-+]?([1-9]\d+|\d))((\.(\s|$))|(,(\s|$))|\s|$|\))/u
      

      Should better be:

      /(\s|^|\()([-+]?([1-9]\d+|\d))(([\.,;:?!](\s|$))|\s|$|\))/u

      Otherwise integers that are followed by colon, semicolon, question or exclamation mark are not captured

            sanya@mittagqi.com Sanya Mikhliaiev
            sanya@mittagqi.com Sanya Mikhliaiev
            Leon Kiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: