summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2012-11-22 09:52:36 +0100
committerMichal Minar <miminar@redhat.com>2012-11-22 09:52:36 +0100
commitf6457a2b1fe865f6b4e4f90e132129af81a2ae7c (patch)
tree03e14aea27ba528f450f148972e916bad2032b5d /tools
parentb7e5a5de127252280ee2ac474f65b287ff7c1baa (diff)
downloadopenlmi-providers-f6457a2b1fe865f6b4e4f90e132129af81a2ae7c.tar.gz
openlmi-providers-f6457a2b1fe865f6b4e4f90e132129af81a2ae7c.tar.xz
openlmi-providers-f6457a2b1fe865f6b4e4f90e132129af81a2ae7c.zip
fixed regex for parsing mof files
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mof2wiki.sh2
1 files changed, 1 insertions, 1 deletions
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"