From f6457a2b1fe865f6b4e4f90e132129af81a2ae7c Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Thu, 22 Nov 2012 09:52:36 +0100 Subject: fixed regex for parsing mof files --- tools/mof2wiki.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/mof2wiki.sh b/tools/mof2wiki.sh index bbd9b0f..0b92620 100755 --- a/tools/mof2wiki.sh +++ b/tools/mof2wiki.sh @@ -32,7 +32,7 @@ export LC_ALL=C printf "||= Defined class name =||= Inherited from =||\n" while IFS= read line; do - if [[ $line =~ ^class[[:blank:]]*([[:alnum:]_]*)":"[[:blank:]]*([[:alnum:]_]*) ]]; then + if [[ $line =~ ^class[[:blank:]]*([[:alnum:]_]*)[[:blank:]]*":"[[:blank:]]*([[:alnum:]_]*) ]]; then newclass=${BASH_REMATCH[1]} derived=${BASH_REMATCH[2]} printf "|| [wiki:%s %s] || [$schemasurl%s.html %s] ||\n" "$newclass" "$newclass" "$derived" "$derived" -- cgit