Skip to content

Commit

Permalink
Merge branch 'main' into prod/festapp
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Dec 12, 2024
2 parents ae2f25e + cff1fd0 commit 949e086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/LinkModel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class LinkModel {
String? secondPart;

// Use a regular expression with named groups to match the pattern after the hash sign (#)
final regex = RegExp(r'#\/(?<firstPart>[^\/]+)\/(?<secondPart>[^\/]+)');
final regex = RegExp(r'#\/(?<firstPart>[^\/]+)(?:\/(?<secondPart>[^\/]+))?');
final match = regex.firstMatch(url);

var rootLinks = AppRouter.getRootLinks();
Expand Down

0 comments on commit 949e086

Please sign in to comment.