Skip to content

[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

Merged
merged 7 commits into from
Aug 20, 2024

Conversation

yashsinghcodes
Copy link
Member

@yashsinghcodes
Copy link
Member Author

also fixes the Shuffle/Shuffle#1492 for shuffle-shared as it was required to actually test my file.

@yashsinghcodes
Copy link
Member Author

@frikky please have a look :)

{"$exec.#1", false},
{"$exec", false},
{"$exec.#1.value.#2", false},
{"$start_node.#", true},
Copy link
Member

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+)?($|\.))`
Copy link
Member

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 :)

@frikky
Copy link
Member

frikky commented Aug 20, 2024

Let's try this one as well now that we got the edgecases handled :)

@frikky frikky merged commit bb5e77d into Shuffle:main Aug 20, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants