Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

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

Merged
daxian-dbw merged 1 commit into
PowerShell:mainPowerShell/AIShell:mainfrom
daxian-dbw:parserdaxian-dbw/AIShell:parserCopy head branch name to clipboard
Mar 8, 2025
Merged

Update the regex for matching single-quote and double-quote strings for PowerShell and Bash#357
daxian-dbw merged 1 commit into
PowerShell:mainPowerShell/AIShell:mainfrom
daxian-dbw:parserdaxian-dbw/AIShell:parserCopy head branch name to clipboard

Conversation

@daxian-dbw

Copy link
Copy Markdown
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
@daxian-dbw daxian-dbw deleted the parser branch March 8, 2025 06:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.