-
Notifications
You must be signed in to change notification settings - Fork 24
[fix]: subflow execution with .#1 #98
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
Conversation
also fixes the Shuffle/Shuffle#1492 for shuffle-shared as it was required to actually test my file. |
@frikky please have a look :) |
{"$exec.#1", false}, | ||
{"$exec", false}, | ||
{"$exec.#1.value.#2", false}, | ||
{"$start_node.#", true}, |
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.
Remember some newline tests ;)
@@ -159,6 +159,15 @@ func randStr(strSize int, randType string) string { | |||
return string(bytes) | |||
} | |||
|
|||
func isLoop(arg string) bool { | |||
if strings.Contains(arg,"$") && strings.Contains(arg, ".#") { | |||
pattern := `(^|\.)(#(\d+-\d+)?($|\.))` |
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.
Can we add another if inside the other if that checks for string contains ".#." or string endswith(".#") and just return true if it is?
I want to use the regex as little as possible :)
Let's try this one as well now that we got the edgecases handled :) |
fix for Shuffle/Shuffle#1463