Fix a bug where route names could have 2 consecutive dots.
Ex:
new RouteGroup(
[
new RouteGroup(
[
Route::get('/foo', 'foo', name: 'route_name'),
],
),
],
name: 'group',
);
Previously, the route ended up with the name group..route_name
.
Now, its name is just group.route_name
.