• Resolved yasiekk

    (@yasiekk)


    Check this out:

    View post on imgur.com

    I’ve edited the CSS a bit, so the words with the light grey background are a glossary term, the others are not.

    It catches the second occurence, but not the first. If I add an <a> tag in the same line, then it fails for this line too.

    Here’s the code for those two lines:

     	<li>a CP2102 USB/UART converter with 4 female-female jumper wires (<a href="https://www.amazon.co.uk/UART-CP2102-Module-Serial-Converter/dp/B00AFRXKFU/ref=sr_1_1?ie=UTF8&qid=1507218400&sr=8-1&keywords=CP2102">Amazon UK</a>) (<a href="https://www.amazon.com/KEDSUM?-CP2102-Module-Download-Converter/dp/B009T2ZR6W">Amazon US</a>)</li>
     	<li>a CP2102 USB/UART converter <a>b</a></a></li>

    Is this a regex problem?

    • This topic was modified 7 years, 1 month ago by yasiekk.
    • This topic was modified 7 years, 1 month ago by yasiekk.
Viewing 4 replies - 1 through 4 (of 4 total)
  • So the issue that is a bullet list when there is a html tag the plugin is not executed instead on a bullet list item without tags there are no isse?

    Thread Starter yasiekk

    (@yasiekk)

    Yes, it works correctly without the bullet lists. It’s definitely a regex problem.

    In /public/includes/Glossary_Search_Engine.php, line 124 – the negative lookahead part of regex seems to be not working correctly. Removing the ‘(?![^<]*(\\/>|<span|<a|<h|<\\/button|<\\/h|<\\/a|<\\/pre|\\”))’ part of regex fixed it for me.

    Thank you for the hints we will do more tests for that.
    Cna you share with us your php version?

    I will close this ticket for no updates.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working in bullet list when there’s an tag already’ is closed to new replies.