aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-03-04 13:52:23 -0600
committerCody <cody@codyq.dev>2023-03-04 13:52:23 -0600
commitffd893f7c88769dfcb889861cf662b18f896a55f (patch)
tree46097a5c3b6987c24e04574b5b3541674624ba2c /src
parentd1593cfaf31f291cea63ed552d492138efa451ce (diff)
downloadsloth-ffd893f7c88769dfcb889861cf662b18f896a55f.tar.gz
Add GitHub workflow and update Nix flakes
Diffstat (limited to 'src')
-rw-r--r--src/lexer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lexer.rs b/src/lexer.rs
index 01d1ab6..88d86bd 100644
--- a/src/lexer.rs
+++ b/src/lexer.rs
@@ -199,7 +199,7 @@ impl<'a> Iterator for Lexer<'a> {
if self.peek() == Some('.') && self.peek_nth(1) != Some('.') {
self.advance();
value.push('.');
- while ('0'..='9').contains(&self.peek().unwrap()) {
+ while self.peek().unwrap().is_ascii_digit() {
value.push(self.advance().unwrap());
}
}