projects
/
euphorik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0bb356
)
FIX suppression des /;;.*$/ (définit étant un commentaire) lors de la minification...
author
Greg Burri
<greg.burri@gmail.com>
Mon, 6 Oct 2008 20:41:21 +0000
(20:41 +0000)
committer
Greg Burri
<greg.burri@gmail.com>
Mon, 6 Oct 2008 20:41:21 +0000
(20:41 +0000)
tools/jsmin.js
patch
|
blob
|
history
diff --git
a/tools/jsmin.js
b/tools/jsmin.js
index
a49c2bf
..
55ee654
100644
(file)
--- a/
tools/jsmin.js
+++ b/
tools/jsmin.js
@@
-121,6
+121,16
@@
function jsmin(comment, input, level) {
function next() {
var c = get();
+
+ if (c === ";" && peek() === ";") {
+ for (;;) {
+ c = get();
+ if (c <= '\n') {
+ return c;
+ }
+ }
+ }
+
if (c == '/') {
switch (peek()) {
case '/':