• Resolved truxton

    (@truxton)


    Hi,
    I want to ask a question and report a (probably) crash issue.
    Question:
    How to highlight the question mark in the search result? Currently, so long as a question mark is included in the search text area, the result will be messy and any keyword won’t be highlighted.
    Crash issue:
    Simply input /? in the search area and the whole web page won’t respond.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Thank you for reporting. Indeed, I can replicate this. It looks like the highligher is caught in an exception or loop. I suspect it is something to do with the regular expression, which tries to match the content.
    Luckily this is only a client side issue, the search is executed safely. Only when the results were printed and the highligher is engaged, that sort of loops inifinitely for specific phrases.

    Very interesting to see these issues, given this script is used for years now, and it never actually came up until now.

    Thank you again, we will patch this in the next release.

    Best,
    Ernest M.

    Thread Starter truxton

    (@truxton)

    Hi,
    Thanks for your reply to the second issue’s feedback, is there any method to solve question 1 (the question mark is not highlighted)? Thank you!

    Plugin Author wpdreams

    (@wpdreams)

    Sorry, I forgot to answer that, it is very likely caused by the same issue as the second one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘question mark highlight and a crash issue’ is closed to new replies.