Skip to content
Snippets Groups Projects
Commit b244242d authored by bobogei81123's avatar bobogei81123
Browse files

Fix #838

- rewrite the unsafe block in `expand_process` at
  `src/lib/parser/shell_expand/mod.rs` so that strings start with whitespace
  will not cause panic. Also the definition of whitespace now includes unicode
  whitespaces (so the behavior matches `split_whitespace` which is used
  in other places), and the time complexity is reduced from O(n^2) to O(n).
- add a test in example/issues.ion for this issue
parent 6af85d7e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment