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

Update the regex for matching single-quote and double-quote strings for PowerShell and Bash #357

Merged
merged 1 commit into from
Mar 8, 2025

Conversation

daxian-dbw
Copy link
Member

PR Summary

  1. Fix the single-quote string regex for PowerShell -- backslash \ is allowed at any position in a single-quoted string
  2. Simplify the regex for double-quoted string regex for PowerShell -- the single-line mode (?s) has no effect because . is not used.
  3. Add single-quote string and double-quote string regexes to Bash.

@daxian-dbw daxian-dbw merged commit fa889a7 into PowerShell:main Mar 8, 2025
4 checks passed
@daxian-dbw daxian-dbw deleted the parser branch March 8, 2025 06:34
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