Changeset 146576
- Timestamp:
- 08/17/2009 10:47:12 AM (17 years ago)
- File:
-
- 1 edited
-
script-compressor/trunk/script-compressor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
script-compressor/trunk/script-compressor.php
r146287 r146576 190 190 */ 191 191 function compress($content) { 192 $regex_js = '%<script.+src=["\'](?:(?!https?://)|(?:https?://' . preg_quote($_SERVER['HTTP_HOST'], '%') . '))/?(.+\.js(?:\?.* )?)["\'].*>\s*</script>(?:\r?\n)*%m';193 $regex_css = '%<link.+href=["\'](?:(?!https?://)|(?:https?://' . preg_quote($_SERVER['HTTP_HOST'], '%') . '))/?(.+\.css(?:\?.* )?)["\'].*/?>(?:\r?\n)*%m';192 $regex_js = '%<script.+src=["\'](?:(?!https?://)|(?:https?://' . preg_quote($_SERVER['HTTP_HOST'], '%') . '))/?(.+\.js(?:\?.*?)?)["\'].*>\s*</script>(?:\r?\n)*%m'; 193 $regex_css = '%<link.+href=["\'](?:(?!https?://)|(?:https?://' . preg_quote($_SERVER['HTTP_HOST'], '%') . '))/?(.+\.css(?:\?.*?)?)["\'].*/?>(?:\r?\n)*%m'; 194 194 195 195 $regex_before = $this->buildRegexFromArray($this->options['jspos']);
Note: See TracChangeset
for help on using the changeset viewer.