diff --git a/internal/phpx/server.go b/internal/phpx/server.go index f7bebb7..dd4f3da 100644 --- a/internal/phpx/server.go +++ b/internal/phpx/server.go @@ -5,6 +5,7 @@ import ( "encoding/json" "io" "os" + "regexp" "strings" "sync" @@ -233,6 +234,8 @@ var serverPHP string // pre-process the server.php code to make it shorter func init() { + minifier := regexp.MustCompile(`\s*([=)(.,{}])\s*`) + // remove the first '