Uploaded image for project: 'AdMax'
  1. AdMax
  2. ADMAX-3136

Graffiti: Tagging - Tag Strings Validation Requires a Tag Term Start To Be Number or Letter

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Graffiti v1.00
    • Fix Version/s: Sustaining
    • Component/s: None
    • Labels:
      None

      Description

      Tag strings validation requires a tag term start to be number or letter, while in reality it can be any one of the valid characters like "middle dots", hyphens etc.

      Text.java needs to be modified:

      /**

      • Characters that are valid at the start of an term... basically just letters.
        */
        public static final String TERM_START_CHARACTERS = "[
        p {Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Mn}\\p{Mc}
        p{Nd}]";

        /**
        * Characters that are valid after the first part of an term. Basically letters or numbers.
        */
        public static final String TERM_PART_CHARACTERS = "[
        p{Lu}


        p

        {Ll}


        p

        {Lt}


        p

        {Lm}


        p

        {Lo}


        p

        {Mn}


        p

        {Mc}


        p

        {Nd}

        ]";

      /**

      • Characters that can be used to separate parts of an term.
        */
        public static final String TERM_PART_SEPARATOR_CHARACTERS = "[\\\\/\\|'_.\\-\\u00B7\\u30FB
        p {Zs}

        ]";

        Attachments

          Activity

            People

            • Assignee:
              jshih Jeff Shih (Inactive)
              Reporter:
              antony Antony Rajiv (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: