• Resolved sacredsamf

    (@sacredsamf)


    Hello.
    There is an error in Safari (works in Chrome) in js/public/wooptpm.js line 354:
    let regex = /(?<=post-)\d+/gm;

    Invalid regular expression: Invalid group specifier name

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author alekv

    (@alekv)

    Hi @sacredsamf

    Thanks for reporting this!

    It seems that Safari can’t properly process a certain type of syntax I’m using to declare the functions for the plugin.

    I’ll debug this. I guess it will take a few days before I release a fix.

    Regards
    Aleks

    mookie4a4

    (@mookie4a4)

    Ah yes I’ve just been debugging this error and found this post. It broke all the Jquery on my site due to Autoptimize. We had some very upset Apple users trying to checkout.

    Hope you fix it soon!

    Cheers
    Mat

    Plugin Author alekv

    (@alekv)

    Ok. The bug seems only to be caused by this regex. I’ll find a workaround and probably will release the fix later today.

    Plugin Author alekv

    (@alekv)

    @sacredsamf and @mookie4a4

    I released a fix for this (version 1.8.25).

    Let me know if it works for you.

    mookie4a4

    (@mookie4a4)

    yea looks good so far.

    Nice one thanks!

    Thread Starter sacredsamf

    (@sacredsamf)

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Safari invalid regular expression’ is closed to new replies.