diff --git a/src/nat/systems/AttachmentSystem.kiss b/src/nat/systems/AttachmentSystem.kiss index 6dcc387..2fec383 100644 --- a/src/nat/systems/AttachmentSystem.kiss +++ b/src/nat/systems/AttachmentSystem.kiss @@ -1,12 +1,14 @@ (load "../Lib.kiss") -(defNew [&prop :Array extensions - :AttachmentProcessor processor] +(defNew [:Array _extensions + :AttachmentProcessor processor] + [:Array extensions (for extension _extensions (extension.toLowerCase))] + (super ->[archive e] { (doFor file e.files - (when !(= -1 (extensions.indexOf (file.extension))) + (when !(= -1 (extensions.indexOf (.toLowerCase (file.extension)))) (return true))) false }