battleaxedotco / brutalism

Battleaxe's component library for Adobe CEP panels
https://battleaxe.dev/brutalism-docs/
MIT License
91 stars 12 forks source link

Panelify failure on Safari in < 1.3.3 #8

Closed Inventsable closed 4 years ago

Inventsable commented 4 years ago

Attempting to launch brutalism in Safari browser for versions lower than 1.3.3 produced the following error: SyntaxError: Invalid regular expression: invalid group specifier name.

This was being thrown from the Panelify component at the computed this.src property from use of Regex lookbehinds not supported in Safari:

ice_screenshot_20200430-131449
Inventsable commented 4 years ago

Fixed with f3bfc138e202b0ea79bb76530cc81eb9fb1f65ab and adding some path correction between url and route props.