You are here

constant BackendInterface::IDENT_EXPR in SCSS Compiler 1.0.x

An identifier expression which is a proper subset of both PHP & SCSS.

This regular expression should be used to validate function names supplied when registering PHP functions with the compiler.

File

src/BackendInterface.php, line 29

Class

BackendInterface
Provides a common interface for backend implementations.

Namespace

Drupal\compiler_scss

Code

const IDENT_EXPR = <<<'REGEX'
  /^[a-zA-Z_][a-zA-Z0-9_]*$/
REGEX
;