class ActionDispatch::Journey::Path::Pattern::UnanchoredRegexp

def accept(node)

:nodoc:
def accept(node)
  path = visit node
  path == "/" ? %r{\A/} : %r{\A#{path}(?:\b|\Z|/)}
end