You are here

constant JsonApiSpec::MEMBER_NAME_INNER_ALLOWED_CHARACTERS in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/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

core/modules/jsonapi/src/JsonApiSpec.php, line 54

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}\\-_ ]";