mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 19:32:15 +09:00
#18549441 주석 제거 코드 수정.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7049 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5422844765
commit
122c3f3435
1 changed files with 3 additions and 1 deletions
|
|
@ -253,9 +253,11 @@ if(!$cached) {
|
|||
|
||||
function doCompressCode($str_code) {
|
||||
$str_code = str_replace("\r", "\n", $str_code);
|
||||
$str_code = preg_replace("!\/\*([^\"']*?)\*\/!sm", '', $str_code);
|
||||
$str_code = preg_replace("!^([ \t]+)!m", '', $str_code);
|
||||
$str_code = preg_replace("!([ \t]+)$!m", '', $str_code);
|
||||
$str_code = preg_replace("!^\/\*(.+?)\*\/$!sm", '', $str_code);
|
||||
$str_code = preg_replace("!^\/\*([^/]*?)\*\/$!sm", '', $str_code);
|
||||
$str_code = preg_replace("!^\/\*([^*]*?)\*\/$!sm", '', $str_code);
|
||||
$str_code = preg_replace("!^\/\/([^\n]*)$!m", '', $str_code);
|
||||
$str_code = preg_replace("!(\n{2,})!m", "\n", $str_code);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue