Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function isTSimpleIdentifierValid($string) |
||
12 | { |
||
13 | //The below pattern represents the allowed identifiers in ECMA specification |
||
14 | $regex = '[\p{L}\p{Nl}][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}]{0,}'; |
||
15 | return 480 >= strlen($string) && $this->matchesRegexPattern($regex, $string); |
||
16 | } |
||
17 | } |
||
18 |