Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15348

Smiley and emoji parse conflict

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.2.0, 3.2.1
    • 3.2.1
    • Posting

    Description

      Smileys and emoji conflict with each other when parsing text.

      Apparently, smileys are given priority over emoji, causing bugs when smileys are part of emoji, likeĀ :o in :ox:, rendering the smiley for :o and "x:".

      I suggest to either give preference to the longest string (until a space character?), but I am unsure if it is under s9e\TextFormatter domain. This is already being done inside smileys: a custom smiley ":oooh:" will render correctly.

      Otherwise, we could very well reverse the priority: smileys can be a substring of emoji (semicolon + a character, usually), like :o, , etc being subsets of :ox:, :pe:; but emoji are not: I find it difficul to imagine a custom emoji string that would continue from :ox:, like... :ox:whatever.

      Thank you!

      Attachments

        Activity

          People

            Marc Marc
            Nerestaren Nerestaren
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: