use :.. instead of :...
This commit is contained in:
1 parent
f2c4233ef4
commit
61e9fd9973
11 files changed
+15
-15
No files matched your search
@@ -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()
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user