Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ksherlock
· 6y ago · 0 comments
... Why? This happened when I switched my parser to skip per-byte checks when encountering `"` to next indexOf.
Q: What happens when you parse "\\" ?
Comments
[–]
marknadal
6y ago
If string[index-1] === `\\` Then skipAgain
[–]
ksherlock
OP
6y ago
How does that differentiate "\\" vs "\" ?