From 725e49f50e391eeb60c050f14488ba2426931c92 Mon Sep 17 00:00:00 2001 From: steve donovan Date: Mon, 9 Jan 2012 14:07:24 +0200 Subject: [PATCH] malformed ref check did not allow - (in example file names) --- ldoc/doc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldoc/doc.lua b/ldoc/doc.lua index 19998ad..51be237 100644 --- a/ldoc/doc.lua +++ b/ldoc/doc.lua @@ -485,7 +485,7 @@ end function Module:process_see_reference (s,modules) local mod_ref,fun_ref,name,packmod - if not s:match '^[%w_%.%:]+$' or not s:match '[%w_]$' then + if not s:match '^[%w_%.%:%-]+$' or not s:match '[%w_]$' then return nil, "malformed see reference: '"..s..'"' end -- is this a fully qualified module name?