Skip to content

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

Merged
mrmlnc merged 1 commit intomasterfrom
ISSUE-351_fix_brace_expansion_checker
Jan 14, 2022
Merged

ISSUE-351: Bash style brace expansions stops working after upgrade to 3.2.8#353
mrmlnc merged 1 commit intomasterfrom
ISSUE-351_fix_brace_expansion_checker

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.

1 participant