Skip to content

Commit 4701384

Browse files
authored
Merge pull request #10 from mbartlett21/patch-1
Add `no_quote_replacement` feature
2 parents 2a37045 + 4037e6d commit 4701384

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ keywords = ["compiler-runner","scripting","snippets"]
1414

1515
license = "MIT"
1616

17+
[features]
18+
no_quote_replacement = []
19+
1720
[dependencies]
1821
easy-shortcuts = "0.3"
1922
lapp = "0.4"

src/cache.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const KITCHEN_SINK: &str = "
5252
// Windows shell quoting is a mess, so we make single quotes
5353
// become double quotes in expressions
5454
pub fn quote(s: String) -> String {
55-
if cfg!(windows) {
55+
if cfg!(all(windows, not(feature = "no_quote_replacement"))) {
5656
s.replace("\'","\"")
5757
} else {
5858
s

0 commit comments

Comments
 (0)