contrib/check-code.py
branchstable
changeset 19081 e97ce4a5afc5
parent 19080 5e4491c114b2
child 19083 12f15e4b2ca0
--- a/contrib/check-code.py	Mon Apr 22 16:33:28 2013 -0500
+++ b/contrib/check-code.py	Mon Apr 22 16:50:08 2013 -0500
@@ -74,7 +74,7 @@
     (r'/dev/u?random', "don't use entropy, use /dev/zero"),
     (r'do\s*true;\s*done', "don't use true as loop body, use sleep 0"),
     (r'^( *)\t', "don't use tabs to indent"),
-    (r'sed .*\'/[^/]*/i[^\\][^\n]',
+    (r'sed .*\'(\d+|/[^/]*/)i[^\\][^\n]',
      "put a backslash-escaped newline after sed 'i' command"),
   ],
   # warnings