We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f55aa5a commit 87b5930Copy full SHA for 87b5930
crates/vm/src/stdlib/builtins.rs
@@ -121,7 +121,7 @@ mod builtins {
121
let hash_pos = line.iter().position(|&b| b == b'#')?;
122
if !line[..hash_pos]
123
.iter()
124
- .all(|&b| b == b' ' || b == b'\t' || b == b'\x0c')
+ .all(|&b| b == b' ' || b == b'\t' || b == b'\x0c' || b == b'\r')
125
{
126
return None;
127
}
@@ -168,7 +168,7 @@ mod builtins {
168
// Only check second line if first line is blank or a comment
169
let trimmed = first
170
171
- .skip_while(|&&b| b == b' ' || b == b'\t' || b == b'\x0c')
+ .skip_while(|&&b| b == b' ' || b == b'\t' || b == b'\x0c' || b == b'\r')
172
.copied()
173
.collect::<Vec<_>>();
174
if !trimmed.is_empty() && trimmed[0] != b'#' {
0 commit comments