mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-23 12:49:40 +00:00
Slightly improve variable naming
This commit is contained in:
parent
93e37a2a70
commit
10304c9d57
14
index.html
14
index.html
@ -237,14 +237,14 @@ function unpacker_filter(source, strip_comments)
|
||||
found = false;
|
||||
if (/^\s*\/\*/.test(source)) {
|
||||
found = true;
|
||||
commentChunk = source.substr(0, source.indexOf('*/') + 2);
|
||||
source = source.substr(commentChunk.length).replace(/^\s+/, '');
|
||||
comment += commentChunk + "\n";
|
||||
comment = source.substr(0, source.indexOf('*/') + 2);
|
||||
source = source.substr(comment.length).replace(/^\s+/, '');
|
||||
trailing_comments += comment + "\n";
|
||||
} else if (/^\s*\/\//.test(source)) {
|
||||
found = true;
|
||||
commentChunk = source.match(/^\s*\/\/.*/)[0];
|
||||
source = source.substr(commentChunk.length).replace(/^\s+/, '');
|
||||
comment += commentChunk + "\n";
|
||||
comment = source.match(/^\s*\/\/.*/)[0];
|
||||
source = source.substr(comment.length).replace(/^\s+/, '');
|
||||
trailing_comments += comment + "\n";
|
||||
}
|
||||
} while (found);
|
||||
|
||||
@ -261,7 +261,7 @@ function unpacker_filter(source, strip_comments)
|
||||
source = unpacker_filter(MyObfuscate.unpack(source))
|
||||
}
|
||||
|
||||
return comment + source;
|
||||
return trailing_comments + source;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user