Skip to content
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

ISSUE-56: correctly handle an unpaired quotes #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrmlnc
Copy link
Contributor

@mrmlnc mrmlnc commented Jan 7, 2025

This is a fix for the issue #56.

I consider the current behavior in the master branch to be a bug, as the package description mentions compatibility with bash.

So I consider this pull-request as a bug fix and do not add any new options.


First of all, I wrote a number of tests because, unfortunately, there were no explicit tests for the quotes. For cases of paired, unpaired, and mixed quotes.

Second, if an unpaired quote occurs in a pattern, I treat it as plain text, not a quote.

P.S. I am confident that we will also face some additional problems after the release. Just because I'm not sure that I've covered all cases. Quotes in bash are a separate kind of art.

@mrmlnc mrmlnc linked an issue Jan 7, 2025 that may be closed by this pull request
@mrmlnc mrmlnc force-pushed the issue-56 branch 2 times, most recently from a2e5787 to 66da819 Compare January 7, 2025 13:52
@mrmlnc mrmlnc requested a review from jonschlinkert January 7, 2025 13:52
@mrmlnc mrmlnc marked this pull request as ready for review January 7, 2025 13:52
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.

Ability to disable the removal of unpaired quotes
1 participant