Skip to content

Commit d90d41d

Browse files
committed
Allow version or build numbers
1 parent 438c184 commit d90d41d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/msftidy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def check_title_format
212212
if @source =~ /'Name'[[:space:]]*=>[[:space:]]*['|"](.+)['|"],*$/
213213
words = $1.split
214214
words.each do |word|
215-
if word =~ /^['"].+['"]$/ or word =~ /^[a-z].*[A-Z].+$/ or word =~ /^.+\(\)$/
215+
if word =~ /^['"].+['"]$/ or word =~ /^[a-z].*[A-Z].+$/ or word =~ /^.+\(\)$/ or word =~ /^[vb][\d\.\-r]+$/
216216
next
217217
elsif %w{and or the for via to}.include?(word)
218218
next

0 commit comments

Comments
 (0)