Skip to content

1.5.1 broken in Safari #169

@mcmillion

Description

@mcmillion

Getting the following error in Safari (latest): SyntaxError: Invalid regular expression: invalid group specifier name

Looks like this actually may be inside cloudinary-core? We got this issue after recently updating to cloudinary-react to 1.5.1. Initial digging looks like this is an issue with Safari not supporting regex lookbehind.

Steps to reproduce

Use Safari. Tested on 13.1.1, but it looks like any version of Safari will fail.

Error screenshots

This is minified code, but you can see which regex pattern is at fault
Screen Shot 2020-06-30 at 3 34 52 PM

Browsers (if issue relates to UI, else ignore)

[ ] Chrome
[ ] Firefox
[X] Safari
[ ] Other (Specify)
[ ] All

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions