Skip to content

ISSUE-351: Bash style brace expansions stops working after upgrade to 3.2.8 #353

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 1 commit into from
Jan 14, 2022

Conversation

mrmlnc
Copy link
Owner

@mrmlnc mrmlnc commented Jan 14, 2022

What is the purpose of this pull request?

This is a final fix for #351 based on the first regular expression (click).

What changes did you make? (Give an overview)

Some people, when confronted with a problem, think
“I know, I'll use regular expressions.” Now they have two problems.

So, аfter correcting the polynomial explosion (1, 2), we had problems with detecting brace expansion.

I couldn't write a valid regular expression (taking into account the current versions of platform) that would work with the pattern from issue (abc/{a.txt,b.txt}), so I rewrote it to a regular function. This function has a more generalized view and should work with any patterns.

It seems to me that the current solution is easier to understand and support.

@mrmlnc mrmlnc force-pushed the ISSUE-351_fix_brace_expansion_checker branch from cac7455 to 028cfe7 Compare January 14, 2022 19:10
@mrmlnc mrmlnc merged commit 36c0c51 into master Jan 14, 2022
@mrmlnc mrmlnc deleted the ISSUE-351_fix_brace_expansion_checker branch January 14, 2022 19:26
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.

None yet

1 participant