OSDN Git Service

fix the width parameter of wiki.
authorvisor <visor@users.sourceforge.jp>
Mon, 30 May 2011 13:04:57 +0000 (22:04 +0900)
committervisor <visor@users.sourceforge.jp>
Mon, 30 May 2011 13:04:57 +0000 (22:04 +0900)
lib/util_check.cc

index be0750f..939b7a4 100644 (file)
@@ -96,7 +96,7 @@ bool  checkNum (uiterator& b, uiterator& e) {
     return (checkRe (b, e, re_num));
 }
 
-static uregex  re_width ("^[0-9]+(%|px|pt|in|mm|cm|em|ex)?$");
+static uregex  re_width ("^[0-9]+(\\.[0-9]+)?(%|px|pt|in|mm|cm|em|ex)?$");
 bool  checkWidth (uiterator& b, uiterator& e) {
     return (checkRe (b, e, re_width));
 }