fix: Improved parsing and handling of backslashes
Fixes the issue where: ``` let arg = todo echo -e "\n\n$arg" ``` Returns: ``` ntodo ``` Instead of: ``` todo ``` --- Fixes issue where: ``` echo -e "one\\\\\ntwo\\\\\nthree" ``` Returns: ``` one\\ntwo\\nthree ``` Instead of: ``` one\ two\ three ```
Showing
- src/lib/expansion/words/mod.rs 359 additions, 189 deletionssrc/lib/expansion/words/mod.rs
- tests/glob.ion 3 additions, 0 deletionstests/glob.ion
- tests/glob.out 3 additions, 0 deletionstests/glob.out
- tests/methods.out 1 addition, 3 deletionstests/methods.out
- tests/square_brackets.ion 3 additions, 0 deletionstests/square_brackets.ion
- tests/square_brackets.out 3 additions, 0 deletionstests/square_brackets.out
- tests/strings.ion 1 addition, 0 deletionstests/strings.ion
- tests/strings.out 3 additions, 0 deletionstests/strings.out
- tests/variables.ion 2 additions, 1 deletiontests/variables.ion
- tests/variables.out 3 additions, 0 deletionstests/variables.out
Loading
Please register or sign in to comment