aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/character_classes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/character_classes.rs b/src/character_classes.rs
index 4b13f01..cb4d202 100644
--- a/src/character_classes.rs
+++ b/src/character_classes.rs
@@ -20,7 +20,7 @@ pub static DIGIT: Lazy<HashSet<char>> = Lazy::new(||
// This is the character set containing just the characters allowed
// in a hexadecimal digit.
pub static HEXDIG: Lazy<HashSet<char>> = Lazy::new(||
- ('0'..='9')
+ DIGIT.iter().copied()
.chain('A'..='F')
.chain('a'..='f')
.collect()