mathiasbynens / luamin

A Lua minifier written in JavaScript
https://mths.be/luamin
MIT License
217 stars 54 forks source link

find %% mis encoding #31

Closed Sang-Oh closed 8 years ago

Sang-Oh commented 8 years ago

luamin shell v.0.2.8 minifies %% into %.

before:

function (c) return string.format ("%%%02X", string.byte(c)) end)

after:

function (c) return string.format ("%%02X", string.byte(c)) end)
mathiasbynens commented 8 years ago

I cannot reproduce this issue.

$ luamin -c 'string.format ("%%%02X", string.byte(c))'
string.format("%%%02X",string.byte(c))

Please post a command that reproduces the issue if you want me to re-open.