LOCALE_JS_STRING
Same name and namespace in other branches
- 10 core/modules/locale/locale.module \LOCALE_JS_STRING
- 11.x core/modules/locale/locale.module \LOCALE_JS_STRING
- 9 core/modules/locale/locale.module \LOCALE_JS_STRING
- 8.9.x core/modules/locale/locale.module \LOCALE_JS_STRING
- 7.x includes/locale.inc \LOCALE_JS_STRING
Regular expression pattern used to localize JavaScript strings.
Deprecated
in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.
See also
https://www.drupal.org/node/3568156
File
-
core/
modules/ locale/ locale.module, line 32
Code
const LOCALE_JS_STRING = '(?:(?:\'(?:\\\\\'|[^\'])*\'|"(?:\\\\"|[^"])*")(?:\\s*\\+\\s*)?)+';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.