This PR makes compiling scope into RegExp automatic. Pass the string literal version of the scope parameter everywhere, except for when constructing rulesets/ ~WASM calls~.
getScope expected a required string parameter, but get none. It is also called multiple time when passed to addFromJson
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
This PR makes compiling
scope
intoRegExp
automatic. Pass the string literal version of thescope
parameter everywhere, except for when constructing rulesets/ ~WASM calls~.getScope
expected a required string parameter, but get none. It is also called multiple time when passed toaddFromJson
Type of change