-
Notifications
You must be signed in to change notification settings - Fork 2
[ParseCodeString] Implements the ParseCodeString utilities #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
is it intentional that the bundle js is checked into the repo? |
716fd82 to
4994e03
Compare
| @@ -0,0 +1,6 @@ | |||
| export const getDependencies = (codeStr: string) => { | |||
| const regex = /import\s.*\sfrom\s+['"](.*)['"]/g; | |||
| const dependencies = [...codeStr.matchAll(regex)].map(([_, result]) => result); | |||
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
@brandonthomas, yeah, this is the Arbutus Storybook that I publish. The bundle has to be checked in ATM for GH Pages. GH just released new GH Pages action, that doesn't require the bundle to be checked in, and hosts it on a separate branch instead. But I haven't gotten to swapping that out yet. |
|
This PR needs to be redone with https://github.com/guybedford/es-module-lexer. |
Uh oh!
There was an error while loading. Please reload this page.