You are here

constant POTX_JS_OBJECT in Translation template extractor 8

Same name and namespace in other branches
  1. 6.3 potx.inc \POTX_JS_OBJECT
  2. 7.3 potx.inc \POTX_JS_OBJECT
  3. 7.2 potx.inc \POTX_JS_OBJECT

Regular expression pattern used to match simple JS object literal.

This pattern matches a basic JS object, but will fail on an object with nested objects. Used in JS file parsing for string arg processing.

1 use of POTX_JS_OBJECT
_potx_parse_js_file in ./potx.inc
Parse a JavaScript file for translatables. Only from Drupal 6.

File

./potx.inc, line 145
Extraction API used by the web and command line interface.

Code

define('POTX_JS_OBJECT', '\\{.*?\\}');