Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tubalmartin/YUI-CSS-compressor-PHP-port
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Cyperghost/YUI-CSS-compressor-PHP-port
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on May 19, 2022

  1. Update Minifier.php

    Fix processDataUrls to add a space
    Cyperghost authored May 19, 2022
    Copy the full SHA
    76ad409 View commit details
  2. Update composer.json

    Cyperghost authored May 19, 2022
    Copy the full SHA
    6f09687 View commit details
Showing with 3 additions and 2 deletions.
  1. +2 −1 composer.json
  2. +1 −1 src/Minifier.php
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
"keywords": ["yui", "compressor", "css", "cssmin", "compress", "minify"],
"homepage": "https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port",
"license": "BSD-3-Clause",
"version": "v2.4.8-p11",
"authors": [
{
"name": "Túbal Martín",
@@ -35,4 +36,4 @@
"cogpowered/finediff": "0.3.*",
"phpunit/phpunit": "4.8.*"
}
}
}
2 changes: 1 addition & 1 deletion src/Minifier.php
Original file line number Diff line number Diff line change
@@ -387,7 +387,7 @@ private function processDataUrls($css)

// Remove all spaces only for base64 encoded URLs.
if (stripos($token, 'base64,') !== false) {
$token = preg_replace('/\s+/S', '', $token);
$token = preg_replace('/\s+/S', ' ', $token);
}

$ret .= 'url('. $this->registerPreservedToken(trim($token)) .')';