Skip to content

Commit

Permalink
Improve line parameter route constraint
Browse files Browse the repository at this point in the history
We can replace the `*` by the `+`. We don't need to take in account the
case of not having a digit.
  • Loading branch information
eduardoj committed Apr 4, 2023
1 parent e4b3662 commit cb62b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/lib/routes_helper/routes_constraints.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module RoutesConstraints
staging_project_name: %r{[^/]*},
staging_project_copy_name: %r{[^/]*},
request_action_id: /\d*/,
line: /diff_\d*_n\d*/
line: /diff_\d+_n\d+/
}.freeze
end
end

0 comments on commit cb62b30

Please sign in to comment.