• Resolved weronikanika

    (@weronikanika)


    Hi,

    My regex added in js footer of one page with your plugin doesn’t want to work
    function getDateFromString(str) {
    var pattern=/(\d{1,4}([.\-/])\d{1,2}([.\-/])\d{1,4})/gi;
    return(str.match(pattern));
    }
    Getting “str” to the function it’s correct.
    Also, it is working when I add it in the footer of the whole page (with another plugin), but here always returns null.

    Is it a problem with the plugin or I should set up something more to make it work? I would really appreciate the answer.

    Best regards,
    Weronika

Viewing 1 replies (of 1 total)
  • Plugin Author SOGO

    (@orenhav)

    it should work …. I used your code in my dev site and it is working,
    can you share a link to your site with the script to we can test it?

Viewing 1 replies (of 1 total)

The topic ‘Regex js’ is closed to new replies.