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

"Match whole words only" in glossary using non ASCII chars - with php7.x



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


      Hi everyone!

      I am aware of this old post in this forum: Match whole words only and its bug report Match whole words only don't work for non-ASCII characters

      I was wondering if this issue is already fixed in newer versions of Moodle and therefore newer php versions. It is not working correctly in my Moodle, but I may have something misconfigured or need to install or do something else.

      I have posted a new entry in Moodle forums: https://moodle.org/mod/forum/discuss.php?d=381987 and tried in https://demo.moodle.net/ . It has the same behaviour as my Moodle 3.5

      To do test:
      1- I have created a glossary with 3 entries. All of them have the options "This entry should be automatically linked" and "Match whole words only" set :




      2- I have configured the filters so the autolinking would work.

      3- I have created a label with different combinations of the words and I have written what I expected to be happening for each one of these combinations.

      house --> link to the glossary entry "house"

      αγκαζέ --> link to the glossary entry "αγκαζέ"

      está --> link to the glossary entry "está"

      houseeeee --> no link to the glossary

      αγκαζέαααα --> no link to the glossary

      estáeeeee --> no link to the glossary

      αhouse --> no link to the glossary

      αestá --> no link to the glossary

      estáhouse --> no link to the glossary

      estahouse --> no link to the glossary

      esta --> no link to the glossary

      4- Check if the links are created as expected


      I have tried with a Moodle 3.5.4+ (Build: 20190124), php version 7.2.10 and default_charset UTF-8.



          Issue Links



              • Assignee:
                mbgracia Belén Gracia
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                3 Vote for this issue
                4 Start watching this issue


                • Created: