piston: improved suffix handling
commita99f492488da19bf7a18adf09abaaac1ec07e2fb
authorNicola Fontana <ntd@entidi.it>
Thu, 28 Mar 2013 15:36:39 +0000 (28 16:36 +0100)
committerNicola Fontana <ntd@entidi.it>
Thu, 28 Mar 2013 15:36:39 +0000 (28 16:36 +0100)
treeccb2df6ca2b02aaf2eb38d6a7c14bcb943cf4d7c
parentdecbbe7db360d92be4671fb5a8277e87d22ca735
piston: improved suffix handling

Avoid to pick the greedest suffix (such as "pdf.png" in a.pdf.png) but
take the shortest ending one ("png").
piston.lua