You are here

constant JsonApiSpec::MEMBER_NAME_INNER_ALLOWED_CHARACTERS in JSON:API 8

Same name and namespace in other branches
  1. 8.2 src/JsonApiSpec.php \Drupal\jsonapi\JsonApiSpec::MEMBER_NAME_INNER_ALLOWED_CHARACTERS

Member name: allowed characters except as the first or last character.

Space (U+0020) is allowed, but is not URL-safe. It is RECOMMENDED to not use it.

A character class, for use in regular expressions.

See also

http://jsonapi.org/format/#document-member-names-allowed-characters

http://php.net/manual/en/regexp.reference.character-classes.php

File

src/JsonApiSpec.php, line 50

Class

JsonApiSpec
Defines constants used for compliance with the JSON API specification.

Namespace

Drupal\jsonapi

Code

const MEMBER_NAME_INNER_ALLOWED_CHARACTERS = "[a-zA-Z0-9\\x{80}-\\x{10FFFF}\\-_ ]";