438 Commits

Author SHA1 Message Date
Matthias Mullie
7f7aaddec1 Add test to confirm fix for 298
Fixes #298
2021-01-27 14:29:25 +01:00
Matthias Mullie
8538190f4a Speed up multi-line comment preservation regex 2021-01-27 09:50:14 +01:00
setete
6802f36d20 Update FUNDING.yml
File does not support comments in filled in lines, which causes composer to return 
matthiasmullie
  minify
    https://github.com/sponsors/[user1
    https://github.com/sponsors/matthiasmullie] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g.
    https://github.com/sponsors/user2

if fundinginfo is dumped. Removing the comment should resolve the issue.
2021-01-25 15:12:25 +01:00
Matthias Mullie
45fd3b0f1d Make test suite pass for all PHP versions 1.3.66 2021-01-06 16:18:10 +01:00
Matthias Mullie
b88dcc64ec Make sure math methods extraction checks for word boundaries
Otherwise, 'max' could be confused with 'minmax'

Fixes #356
2021-01-06 11:20:44 +01:00
Matthias Mullie
227f190624 Don't install libzip for more recent php versions 1.3.65 2020-12-27 22:43:29 +01:00
Matthias Mullie
6da68a1d6a Add more recent PHP version docker images 2020-12-27 22:08:36 +01:00
Matthias Mullie
6dc3daac84 Login to docker 2020-12-27 21:58:32 +01:00
Matthias Mullie
3e2ab10e2a Add more recent versions to Travis test matrix 2020-12-27 21:50:14 +01:00
Stefan Kalscheuer
3b09a2e01c reverse arguments for implode() call i extractMath()
Fixes regression from 022cd72.
implode() argument order is no longer auto-corrected with PHP 8.
2020-12-27 12:23:53 +01:00
Matthias Mullie
50b8b5daaa
Update README.md 2020-12-23 15:08:17 +01:00
Matthias Mullie
c542a14180
Create FUNDING.yml 2020-12-23 15:06:27 +01:00
Matthias Mullie
38f9d58c73 Add test for #349 1.3.64 2020-12-23 14:37:53 +01:00
Matthias Mullie
022cd72b68 More robust calc() detection
Fixes #312
2020-12-23 14:34:37 +01:00
Matthias Mullie
21678a360c Fix unsafe use of new static
Fixes #350
2020-12-21 15:10:05 +01:00
Matthias Mullie
26da9bbfc8 Preserve custom properties
Fixes #342
2020-12-21 15:08:36 +01:00
Matthias Mullie
8931f76af2 Also preserve math whitespace in clamp, min, max
Fixes #351
2020-12-21 14:15:47 +01:00
Simon
9ba1b45982 Fix #301 calc() not followed by end of line or semicolon not correctly matched 1.3.63 2020-01-21 12:21:08 -08:00
Rémy Perona
a5c9d09f97 add unit test for mutiple calc() on same line 2020-01-21 12:21:08 -08:00
Rémy Perona
a5cf82753b add multiline flag to extractCalcs pattern 2020-01-21 12:21:08 -08:00
enricodias
e99e51935f Add addFile method
The addFile method will throw an exception if it fails to read a file
2020-01-21 12:15:35 -08:00
Wim Wisselink
47a53716f9 Implode swap parameter order for PHP-7.4 support. 1.3.62 2019-12-19 08:54:47 +01:00
Matthias Mullie
e87effb29f Add test for #267 2018-12-17 16:23:25 +01:00
Matthias Mullie
d5acb8ce5b php-cs-fixer 1.3.61 2018-11-27 00:10:39 +01:00
Matthias Mullie
97f118c4c7 Merge branch 'igll-patch-1' 2018-11-27 00:08:46 +01:00
Matthias Mullie
0716502669 Preserve important comments exactly as they are 2018-11-27 00:07:50 +01:00
Matthias Mullie
7d6883bb3d Shorten alpha channel 2018-11-27 00:04:47 +01:00
Matthias Mullie
bb864e00cd Remove whitespace around + and &
Fixes #259
2018-11-27 00:04:46 +01:00
Matthias Mullie
107ed7bc85 Improve regex detection
Fixes #249
Fixes #252
Fixes #253
2018-11-27 00:04:46 +01:00
Rozinko Roman
453dc0dfa3 update css test 2018-11-27 00:04:46 +01:00
Rozinko Roman
e52044ac58 move color replace to a shortenColorCodesToHex() function 2018-11-27 00:04:46 +01:00
Rozinko Roman
2dfe767019 add replace 'white' and 'black' to '#fff' and '#000' 2018-11-27 00:04:46 +01:00
Puskás Zsolt
ee023207c5 preserve important comments 2018-11-27 00:04:46 +01:00
Matthias Mullie
f6b0e73b31 Merge branch 'errotan-comments' 2018-11-27 00:01:59 +01:00
Matthias Mullie
2d13b7b851 Preserve important comments exactly as they are 2018-11-27 00:01:41 +01:00
Matthias Mullie
ea20ad3cbc Shorten alpha channel 2018-11-26 23:35:39 +01:00
Matthias Mullie
75bb291978 Remove whitespace around + and &
Fixes #259
2018-11-26 23:35:39 +01:00
Matthias Mullie
cc0eb0cb6d Improve regex detection
Fixes #249
Fixes #252
Fixes #253
2018-11-26 23:35:39 +01:00
Rozinko Roman
14fb0eda16 update css test 2018-11-26 23:35:39 +01:00
Rozinko Roman
d3d13451e1 move color replace to a shortenColorCodesToHex() function 2018-11-26 23:35:39 +01:00
Rozinko Roman
1c6a499a21 add replace 'white' and 'black' to '#fff' and '#000' 2018-11-26 23:35:39 +01:00
Matthias Mullie
17888a4946 Merge branch 'rozinko-replace-white-black-colors' 2018-11-26 23:25:02 +01:00
Matthias Mullie
4a6450bcae Shorten alpha channel 2018-11-26 23:23:33 +01:00
Matthias Mullie
8b5f5d780d Remove whitespace around + and &
Fixes #259
2018-11-26 23:08:42 +01:00
Matthias Mullie
c291aa05dc Improve regex detection
Fixes #249
Fixes #252
Fixes #253
2018-11-26 23:08:42 +01:00
Matthias Mullie
db7e523ae5 Remove whitespace around + and &
Fixes #259
2018-11-26 22:57:07 +01:00
Matthias Mullie
4762aedee6 Improve regex detection
Fixes #249
Fixes #252
Fixes #253
2018-11-26 21:28:31 +01:00
Rozinko Roman
6426f25ee3 update css test 2018-10-10 22:39:02 +03:00
Rozinko Roman
76f2ce3379 move color replace to a shortenColorCodesToHex() function 2018-10-10 22:22:05 +03:00
Rozinko Roman
8be95e10e6 add replace 'white' and 'black' to '#fff' and '#000' 2018-10-10 22:05:01 +03:00