From d90d41d706ce88ac2e40c7b9351675066af3ac15 Mon Sep 17 00:00:00 2001 From: sinn3r Date: Thu, 13 Dec 2012 12:47:36 -0600 Subject: [PATCH] Allow version or build numbers --- tools/msftidy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/msftidy.rb b/tools/msftidy.rb index eea28ff5af..00b8d4f930 100755 --- a/tools/msftidy.rb +++ b/tools/msftidy.rb @@ -212,7 +212,7 @@ class Msftidy if @source =~ /'Name'[[:space:]]*=>[[:space:]]*['|"](.+)['|"],*$/ words = $1.split words.each do |word| - if word =~ /^['"].+['"]$/ or word =~ /^[a-z].*[A-Z].+$/ or word =~ /^.+\(\)$/ + if word =~ /^['"].+['"]$/ or word =~ /^[a-z].*[A-Z].+$/ or word =~ /^.+\(\)$/ or word =~ /^[vb][\d\.\-r]+$/ next elsif %w{and or the for via to}.include?(word) next