diff options
author | Jesús <heckyel@hyperbola.info> | 2020-02-04 21:03:27 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-02-04 21:03:27 -0500 |
commit | edcc28d056fa30681248910a63cf202870d26d1c (patch) | |
tree | 25d3f918d129ed66729358b161b202fee01d26d6 /plugins/compressor/js_minifer.py | |
parent | 8ce14267858a6ec60cd86d22f086d43067b1fd9c (diff) | |
download | libretube-edcc28d056fa30681248910a63cf202870d26d1c.tar.lz libretube-edcc28d056fa30681248910a63cf202870d26d1c.tar.xz libretube-edcc28d056fa30681248910a63cf202870d26d1c.zip |
pep8
Diffstat (limited to 'plugins/compressor/js_minifer.py')
-rw-r--r-- | plugins/compressor/js_minifer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/compressor/js_minifer.py b/plugins/compressor/js_minifer.py index c03f887..6654b76 100644 --- a/plugins/compressor/js_minifer.py +++ b/plugins/compressor/js_minifer.py @@ -13,8 +13,8 @@ def remove_commented_lines(js): """Force remove commented out lines from Javascript.""" result = "" for line in js.splitlines(): - line = re.sub(r"/\*.*\*/", "", line) # (/*COMMENT */) - line = re.sub(r"//.*", "", line) # (//COMMENT) + line = re.sub(r"/\*.*\*/", "", line) # (/*COMMENT */) + line = re.sub(r"//.*", "", line) # (//COMMENT) result += '\n'+line return result |