OSDN Git Service
(root)
/
hmh
/
hhml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff79519
)
fix the width parameter of wiki.
author
visor
<visor@users.sourceforge.jp>
Mon, 30 May 2011 13:04:57 +0000
(22:04 +0900)
committer
visor
<visor@users.sourceforge.jp>
Mon, 30 May 2011 13:04:57 +0000
(22:04 +0900)
lib/util_check.cc
patch
|
blob
|
history
diff --git
a/lib/util_check.cc
b/lib/util_check.cc
index
be0750f
..
939b7a4
100644
(file)
--- a/
lib/util_check.cc
+++ b/
lib/util_check.cc
@@
-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));
}