Changeset 696 for trunk/lib/CSS.inc.php


Ignore:
Timestamp:
Aug 8, 2019 10:03:59 PM (5 years ago)
Author:
anonymous
Message:

Add unicode flag (/u) to preg_* patterns. Remove usage of create_function().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/CSS.inc.php

    r603 r696  
    182182                // Strip whitespace and print file.
    183183                echo preg_replace(
    184                     array('!/\*.*?\*/!s', '/[\n\r]+/', '/([;:])\s+/m', '/\s*}[ \t]*/', '/\s*{\s*/', '/[ \t\n\r]*,[ \t\n\r]*/', '/^\s+/'),
     184                    array('!/\*.*?\*/!su', '/[\n\r]+/u', '/([;:])\s+/mu', '/\s*}[ \t]*/u', '/\s*{\s*/u', '/[ \t\n\r]*,[ \t\n\r]*/u', '/^\s+/u'),
    185185                    array('', "\n", '$1', '}', '{', ',', ''), file_get_contents($file, true)
    186186                );
Note: See TracChangeset for help on using the changeset viewer.