Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64534

'Match whole words' breaks auto-linking filter for glossary entries ending in a symbol

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.3
    • Fix Version/s: None
    • Component/s: Filters
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      Description:

      When enabling the 'Match whole words' option for a Glossary entry, any concept ending in a symbol e.g. '?' will not be auto-linked.

       

      Steps to replicate:

      1. Ensure Glossary auto-linking filter is 'on' in Site administration>Plugins>Filters
      2. Go to the front page topic section and create a new Glossary
      3. Type in the concept 'Hello?' (without quotes), type anything for the definition
      4. Enable settings Global glossary, auto-linking and match whole words
      5. Save changes
      6. Access a course and create a label resource
      7. Type 'Hello?' into the label text and save changes
      8. View the coures page again

      Observed behaviour:

      'Hello?' isn't linked to the glossary entry i.e. text not highlighted, no pop up window with definition

       

      Expected behaviour:

      'Hello?' is auto-linked to the glossary entry and can be clicked to show the definition.

       

      Additional notes:

      This doesn't occur if the 'match whole words' setting is disabled.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              prankin Phillip Rankin
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: