Method: JSONSchemer::Location.escape_json_pointer_token

Defined in:
lib/json_schemer/location.rb

.escape_json_pointer_token(token) ⇒ Object



20
21
22
# File 'lib/json_schemer/location.rb', line 20

def escape_json_pointer_token(token)
  token.gsub(JSON_POINTER_TOKEN_ESCAPE_REGEX, JSON_POINTER_TOKEN_ESCAPE_CHARS)
end