use :.. instead of :...

This commit is contained in:
Evan Almloff committed 2023-07-18 16:34:27 -07:00
1 parent f2c4233ef4
commit 61e9fd9973
11 files changed
+15 -15

No files matched your search

+2 -2
View File
@@ -150,10 +150,10 @@ pub fn parse_route_segments<'a>(
while let Some(segment) = iterator.next() {
if let Some(segment) = segment.strip_prefix(':') {
let spread = segment.starts_with("...");
let spread = segment.starts_with("..");
let ident = if spread {
segment[3..].to_string()
segment[2..].to_string()
} else {
segment.to_string()
};