Skip to content

Commit

Permalink
Don't match multiple {{{
Browse files Browse the repository at this point in the history
  • Loading branch information
ahx committed Jun 27, 2024
1 parent 18c21ef commit d07dc1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/openapi_first/router/path_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ class Router
# @visibility private
class PathTemplate
# See also https://spec.openapis.org/oas/v3.1.0#path-templating
TEMPLATE_EXPRESSION = /(\{[^}]+\})/
TEMPLATE_EXPRESSION_NAME = /\{([^}]+)\}/
TEMPLATE_EXPRESSION = /(\{[^{}]+\})/
TEMPLATE_EXPRESSION_NAME = /\{([^{}]+)\}/
ALLOWED_PARAMETER_CHARACTERS = %r{([^/?#]+)}

def self.template?(string)
Expand Down

0 comments on commit d07dc1e

Please sign in to comment.