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