This commit is contained in:
Андрей Изотов 2017-03-29 10:39:08 +03:00
parent f11b9b3e56
commit 4a35339c5b

View file

@ -3,7 +3,7 @@
class Klein {
public $code;
function _construct($html) {
function __construct($html) {
$pattern = array_map(function ($grammar) {
list(, $result) = $grammar;
$body = strtr($grammar[0], [' ' => "\s*", '+' => "\s+", ':var' => "(\w+(\s*\.\s*\w+)*)", ':id' => "(\w+)", '{{' => "{{\!?"]);