We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad55d3 commit 1d2e8cbCopy full SHA for 1d2e8cb
nix-script-directives/src/parser.rs
@@ -25,11 +25,11 @@ impl Parser {
25
continue;
26
}
27
28
- let without_indicator = line[self.indicator.len()..].trim_start();
29
- let mut words = without_indicator.split(' ');
+ let line_without_indicator = line[self.indicator.len()..].trim_start();
+ let mut words = line_without_indicator.split_whitespace();
30
31
if let Some(key) = words.next() {
32
- let value = without_indicator[key.len()..].trim_start();
+ let value = line_without_indicator[key.len()..].trim_start();
33
34
if value.is_empty() {
35
log::warn!("skipping directive \"{}\" because value was empty", key);
0 commit comments