From afc386a40f8572b785a4b154b5be5789f260de07 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 18 Nov 2011 10:05:25 +0100 Subject: Implement magic_buffer() --- test.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test.lua') diff --git a/test.lua b/test.lua index 32bfb57..7ac6e67 100644 --- a/test.lua +++ b/test.lua @@ -22,5 +22,7 @@ m:setflags(magic.MIME_TYPE) print(m:error()) print(m:file("Makefile")) +m:setflags(magic.NONE) +print(m:buffer("#!/bin/bash\n")) -- cgit v1.2.3