mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#500 주석문 줄 앞 공백도 함께 제거
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4387 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
22248a0db8
commit
3dd492d991
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@
|
|||
$buff = preg_replace_callback('!<\!--@(.*?)-->!is', array($this, '_compileFuncToCode'), $buff);
|
||||
|
||||
// <!--// ~ --> 주석문 제거
|
||||
$buff = preg_replace('!<\!--//(.*?)-->!is', '', $buff);
|
||||
$buff = preg_replace('!(\n?)( *?)<\!--//(.*?)-->!is', '', $buff);
|
||||
|
||||
// import xml filter/ css/ js/ 언어파일 <!--%import("filename"[,optimized=true|false][,media="media"][,targetie="lt IE 6|IE 7|gte IE 8|..."])--> (media는 css에만 적용)
|
||||
$buff = preg_replace_callback('!<\!--%import\(\"([^\"]*?)\"(,optimized\=(true|false))?(,media\=\"([^\"]*)\")?(,targetie=\"([^\"]*)\")?\)-->!is', array($this, '_compileImportCode'), $buff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue