同步操作将从 黎晓/JavaScript 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php/*** Class Minify_CommentPreserver* @package Minify*//*** Process a string in pieces preserving C-style comments that begin with "/*!"** @package Minify* @author Stephen Clay <steve@mrclay.org>*/class Minify_CommentPreserver {/*** String to be prepended to each preserved comment** @var string*/public static $prepend = "\n";/*** String to be appended to each preserved comment** @var string*/public static $append = "\n";/*** Process a string outside of C-style comments that begin with "/*!"** On each non-empty string outside these comments, the given processor* function will be called. The comments will be surrounded by* Minify_CommentPreserver::$preprend and Minify_CommentPreserver::$append.** @param string $content* @param callback $processor function* @param array $args array of extra arguments to pass to the processor* function (default = array())* @return string*/public static function process($content, $processor, $args = array()){$ret = '';while (true) {list($beforeComment, $comment, $afterComment) = self::_nextComment($content);if ('' !== $beforeComment) {$callArgs = $args;array_unshift($callArgs, $beforeComment);$ret .= call_user_func_array($processor, $callArgs);}if (false === $comment) {break;}$ret .= $comment;$content = $afterComment;}return $ret;}/*** Extract comments that YUI Compressor preserves.** @param string $in input** @return array 3 elements are returned. If a YUI comment is found, the* 2nd element is the comment and the 1st and 3rd are the surrounding* strings. If no comment is found, the entire string is returned as the* 1st element and the other two are false.*/private static function _nextComment($in){if (false === ($start = strpos($in, '/*!'))|| false === ($end = strpos($in, '*/', $start + 3))) {return array($in, false, false);}$ret = array(substr($in, 0, $start),self::$prepend . '/*!' . substr($in, $start + 3, $end - $start - 1) . self::$append);$endChars = (strlen($in) - $end - 2);$ret[] = (0 === $endChars)? '': substr($in, -$endChars);return $ret;}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。