Skip to content

Shell-session: Fixed command false positives - #3048

Merged
RunDevelopment merged 2 commits into
PrismJS:masterfrom
RunDevelopment:issue3047
Sep 6, 2021
Merged

RunDevelopment merged 2 commits into
PrismJS:masterfrom
RunDevelopment:issue3047

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

This fixes #3047.

Changes:

  • A space is now required after the shell symbol.
  • Path-only user infos have to start with a special character to more precisely identify paths. (I split up the regex, so I could comment on the change.)

@github-actions

github-actions Bot commented Aug 24, 2021 •

Copy link
Copy Markdown

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +31 B (+6.3%).

Details
file master pull size diff % diff
components/prism-shell-session.min.js 495 B 526 B +31 B +6.3%

Generated by 🚫 dangerJS against 5715400

@sunknudsen

Copy link
Copy Markdown

@RunDevelopment Mind blown by how fast you handle issue. Thanks!

@sunknudsen

Copy link
Copy Markdown

Hey @RunDevelopment, just stumbled upon another edge case.

Not sure why < /dev/random | head -c 8 is not part of command.

@RunDevelopment

Copy link
Copy Markdown
Member Author

Thanks for reporting @sunknudsen!

@sunknudsen

Copy link
Copy Markdown

Thanks so much for improving shell session support… very useful when writing guides. 🤓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lines falsely identified as commands in shell session

2 participants