Matthias Mullie
121cd3b6eb
Some more whitespace stripping
...
Fixes #232
2018-02-02 12:28:07 +01:00
Matthias Mullie
4ca8d1e34c
Improve regex detection after )
...
Meanwhile also improves extraction by capturing the exact
regex offset, instead of trying to find it again ourselves.
This will not only be slightly faster, but more accurate
as well, since lookahead/-behind things may be missing
from the match & we could end up finding duplicates that
do not satisfy those assertions...
Fixes #231
2018-02-02 11:03:25 +01:00
Matthias Mullie
1e55fe09e7
Regexes can't span multiple lines
...
Fixes #234
2018-02-02 09:26:19 +01:00
Matthias Mullie
adfa7ebcd9
Don't go fixing invalid flex attributes
...
Fixes #235
2018-02-02 08:17:39 +01:00
Matthias Mullie
aee56fe6c7
Add test for #227
2018-01-08 11:01:42 +01:00
Matthias Mullie
cb1450437c
Improve & optimize regex detection
...
Fixes #229
2018-01-08 10:47:52 +01:00
Matthias Mullie
023c6bfb19
Ignore unescaped / inside []
...
Fixes #221
2018-01-01 15:27:09 +01:00
Matthias Mullie
a85f804092
Regex can follow +,-,*,/
...
Fixes #221
2018-01-01 15:25:15 +01:00
Matthias Mullie
a370e29897
Add test case for semicolon after do-while
2017-12-06 12:28:58 +01:00
Matthias Mullie
a2024cc406
Strip whitespace after in some cases
2017-12-06 12:21:49 +01:00
Matthias Mullie
f231fbc701
Improve regex detection
...
The regex to detect regexes is better now, and as a result
I can now take out a bunch of workarounds that were needed
with the earlier flawed regex detection.
Fixes #218
2017-12-06 12:21:18 +01:00
Matthias Mullie
86e4a4e4e7
Leave calc expressions alone when stripping units off of 0
...
Fixed #217
2017-11-24 13:51:16 +01:00
Matthias Mullie
2550f2d533
Add test for #216
2017-11-19 16:58:30 +01:00
Matthias Mullie
16563a8bc7
Improve detection of @imports to move to top
...
Fixes #215
2017-11-17 18:52:43 +01:00
Matthias Mullie
55cf4ef257
Add test for #214
2017-11-17 17:18:14 +01:00
Matthias Mullie
691f0cfe87
Add tests for #212
2017-11-17 17:16:01 +01:00
Matthias Mullie
4a1b464c45
Don't strip ; after empty while loops
...
Fixes #211
2017-11-17 17:14:13 +01:00
Matthias Mullie
a9956302b3
Properly strip consecutive empty CSS blocks
...
Fixes #210
2017-11-17 16:25:17 +01:00
Matthias Mullie
f091f3b9e6
Regexes can also start in array
...
Fixes #209
2017-10-25 08:48:54 +02:00
Matthias Mullie
abfc7c3bd0
Improve regex detection
...
Fixed #204
2017-10-13 17:44:30 +02:00
Matthias Mullie
ec3411c298
Add test for #204
2017-09-27 16:40:03 +02:00
Matthias Mullie
134b25a63d
Don't confuse comments with regex
...
Fixed #199
2017-09-15 15:02:11 +02:00
Matthias Mullie
678725d450
Regexes can follow !
...
Fixes #197
2017-09-14 14:37:17 +02:00
Matthias Mullie
e13f94adf0
Require that a regex has some content
...
Otherwise, the `//` that start a comment could be misread
as regexes.
Fixes #196
2017-09-13 18:51:16 +02:00
Matthias Mullie
0913101507
Add test for #195
2017-09-13 18:14:48 +02:00
Matthias Mullie
ff4ec668b3
Improve regex detection
...
Fixes #195
2017-09-13 15:17:29 +02:00
Matthias Mullie
69f3d7ba83
Quote url() uri's with quotes in them
...
Fixes #193
2017-09-11 17:30:59 +02:00
Matthias Mullie
0c62644146
Be stricter when removing whitespace around + & - in selectors
...
Fixes #191
2017-09-07 19:21:39 +02:00
Matthias Mullie
7bb172c8fc
Add test for #190
2017-09-07 18:54:52 +02:00
Matthias Mullie
574c4eef3a
Add test for #189
2017-09-07 18:30:01 +02:00
Matthias Mullie
6754968497
Improve regex detection
...
Fixes #186
2017-09-07 18:21:26 +02:00
Matthias Mullie
1443646268
Fix newline trimming around tilde
...
Fixed #185
2017-07-06 14:26:44 +02:00
Matthias Mullie
0b3f4f7a26
Add tests for #184
2017-07-06 13:48:28 +02:00
Matthias Mullie
09b83e9dbd
Don't collapse newlines after 'continue'
...
Fixes #178
2017-06-13 17:54:31 +02:00
Matthias Mullie
563651cf1b
Fix regex detection when content is only backslashes
...
Fixes #182
2017-06-13 17:45:38 +02:00
Matthias Mullie
3fcd6421df
Add test for #183
2017-06-13 17:30:29 +02:00
Matthias Mullie
b431a11bc5
Add test for #164
2017-04-19 14:47:29 +02:00
Matthias Mullie
da0a6b1261
Add test for #173
2017-04-19 14:42:53 +02:00
Matthias Mullie
a7fc4a98ef
Add test for #163
2017-03-16 17:42:50 +01:00
Matthias Mullie
19886d4292
Add test for #164
2017-03-16 17:40:19 +01:00
Matthias Mullie
04fe99d70d
Don't shorten and when used as object property
...
Fixes #167
2017-03-16 17:36:28 +01:00
Matthias Mullie
41dc7827da
Don't allow whitespace in unquoted url()
...
Fixed #162
2017-03-14 11:56:47 +01:00
Matthias Mullie
848353ecf2
Quote urls containing #
...
Fixes #165
2017-03-14 11:32:45 +01:00
Matthias Mullie
c4d5176846
Fix url() shortening with data uris containing )
...
Fixes #162
2017-03-14 11:18:46 +01:00
Matthias Mullie
aa50b2dab6
Fix unitless flex-basis, for IE
...
Fixes #159
2017-01-26 16:48:07 +01:00
Matthias Mullie
b48a6d34ff
Add jquery-3.1.1 to confirmation tests
...
Fixes #157
2017-01-26 11:47:38 +01:00
Matthias Mullie
b727c19ad3
Improve ;-deletion after for
...
Detection of a for-loop was a little shaky (still it,
but better now) and in some cases, a stray ; would be
left untouched.
2017-01-26 11:45:20 +01:00
Matthias Mullie
be5a61820f
Stricter checks for not importing absolute paths
...
Fixes #100
2017-01-26 09:12:17 +01:00
Matthias Mullie
cd15113398
Also simplify external links paths
...
For normal files, @import & url() syntax is unified
already (e.g. removing quotes around the path, where
not needed), but this was not done for external
paths.
This also simplifies the huge regex a little
2017-01-25 16:38:45 +01:00
Matthias Mullie
bc46e8b275
Add test for #150
2016-11-25 08:46:06 +01:00