live-plugin-manager
live-plugin-manager copied to clipboard
PluginVm.getScopedInfo could not get the correct scope if it contains a dot
manager.require("@builder.io/utils") would fail because the npm org contains a dot .
In src/PluginVm.ts the regex expression is
const SCOPED_REGEX = /^(@[a-zA-Z0-9-_]+\/[a-zA-Z0-9-_]+)(.*)/;
which is too strict
In npm docs, a correct scope has been described as
A scope follows the usual rules for package names (URL-safe characters, no leading dots or underscores).
https://docs.npmjs.com/cli/v9/using-npm/scope
I can confirm, this is a bug. Thank you. I will try to fix that in the future, but PRs are appreciated ;-)