nyariv/SandboxJS

Library uses lookbehind in regex

Closed this issue · 2 comments

The library uses the lookbehind operator ?<= which is currently not supported in firefox and safari.

str = str.replace(/(?<=(^|[^\w_$]))(var|let|const|typeof|return|instanceof|in)(?=([^\w_$]|$))/g, (match) => {

Please close the issue if it is fixed

thanks