Skip to content

Commit

Permalink
fix fragile parameter passing in repo justfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Dec 12, 2023
1 parent fbf1fa6 commit a976161
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ allFunctions := functionsWithArgs + zeroArgFunctions
# generate an optimized Vim-style "very magic" regex snippet from a list of literal strings to match
optrx +strings:
#!/usr/bin/env python3
vparam = ''{{quote(strings)}}''
vparam = """{{strings}}"""
import collections
strings_list = vparam.split('|') if '|' in vparam else vparam.strip().split()
charByPrefix=dict()
Expand Down
4 changes: 2 additions & 2 deletions tests/justfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# To enable using preview recipes from cwd inside tests/
set fallback

# run tests
# run syntax highlighting tests
run FILTER='':
cargo run {{FILTER}}
cargo run -- {{quote(FILTER)}}

# run tests whenever a file changes
watch FILTER='':
Expand Down

0 comments on commit a976161

Please sign in to comment.