• Resolved Thinh Pham

    (@thinh-pham)


    Problem 1:
    Hashtag is not working properly.
    For example: This is example text!#example_tag
    The case above will not work, hashtag will not be parsed as link

    Problem 2:
    Hashtag from Japanese characters will not work

    How to fix:
    — a/wp-content/plugins/custom-facebook-feed-pro/js/cff-scripts.js
    +++ b/wp-content/plugins/custom-facebook-feed-pro/js/cff-scripts.js
    @@ -240,7 +240,7 @@
    – regex = /(^|\s)#(\w*[a-z\u00E0-\u00FC]+\w*)/gi,
    + regex = /#(\w*[a-z\u00E0-\u00FC一-龠ぁ-?ァ-ヴー]+\w*)/gi,^M

    https://www.ads-software.com/plugins/custom-facebook-feed/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author smashballoon

    (@smashballoon)

    Hi Thinh Pham,

    Thanks for the bug fix. I’ll check this out and plan to include it in the next update.

    If you notice any other bugs then please let me know, and thanks again!

    John

    Plugin Author smashballoon

    (@smashballoon)

    Hi Thinh,

    Thanks again for this, however, the regex that you suggested causes problems with the following link format: https://www.ads-software.com/#test, as it causes the link to be rendered like this: #test">www.ads-software.com/ #test.

    I will change our original regex to include the Chinese characters though, so it will be:

    regex = /(^|\s)#(\w*[a-z\u00E0-\u00FC一-龠ぁ-?ァ-ヴー]+\w*)/gi,

    If you have any other suggestions then just let me know.

    Thanks!

    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hashtag is not working properly’ is closed to new replies.