-
Notifications
You must be signed in to change notification settings - Fork 296
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
Js log dollar sign #2060
base: main
Are you sure you want to change the base?
Js log dollar sign #2060
Conversation
@@ -8,7 +8,7 @@ import maestro.orchestra.MaestroCommand | |||
object Env { | |||
|
|||
fun String.evaluateScripts(jsEngine: JsEngine): String { | |||
val result = "(?<!\\\\)\\\$\\{([^\$]*)}".toRegex() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder what the original author intended with the original regex here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I believe it was to detect anything that's encosed in ${}
and that does not contain $
inside
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why would they have done specific work to exclude the dollar, if it were as simple as just .*?
?
Is there an additional risk we've not considered?
95c0e03
to
2a2f25e
Compare
Rebased |
2a2f25e
to
743044c
Compare
Proposed changes
fun String.evaluateScripts(jsEngine: JsEngine)
to not prevent the script to have any dollar signMAESTRO_CLI_LOG_LEVEL
env var to limit log output level if neededTesting
Issues fixed
Fixes #1760
Fixes #1744