Skip to content

Commit 63d1a78

Browse files
author
Tod Beardsley
committed
Remove capturing parens and debug hexes.
1 parent 637ce05 commit 63d1a78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/msftidy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ def check_lines
424424
# The rest of these only count if it's not a comment line
425425
next if ln =~ /[[:space:]]*#/
426426

427-
if ln =~ /(\$std(?:out|err))/i or ln =~ /[[:space:]]puts/
428-
next if ln =~ /^[\s]*[\x22\x27][^\x22\x27]+\$std(?:out|err)/
427+
if ln =~ /\$std(?:out|err)/i or ln =~ /[[:space:]]puts/
428+
next if ln =~ /^[\s]*["][^"]+\$std(?:out|err)/
429429
no_stdio = false
430430
error("Writes to stdout", idx)
431431
end

0 commit comments

Comments
 (0)