[or-cvs] [https-everywhere/master] better regular expression for finding unescaped dots

schoen at torproject.org schoen at torproject.org
Thu Nov 11 23:59:43 UTC 2010


Author: Seth Schoen <schoen at eff.org>
Date: Thu, 11 Nov 2010 15:59:08 -0800
Subject: better regular expression for finding unescaped dots
Commit: 2070c714a8b0ae016d3a0e0a944b99661fd5f54e

---
 pending-rules/trivial-validate |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pending-rules/trivial-validate b/pending-rules/trivial-validate
index 7fa66b0..bd19a04 100755
--- a/pending-rules/trivial-validate
+++ b/pending-rules/trivial-validate
@@ -6,8 +6,8 @@ echo "-- Rules not anchored to beginning of a line:"
 grep from= *.xml | cut -d\" -f2 | grep '^[^^]' || echo "(None.)"
 
 echo
-echo "-- Rules with unescaped dots:"
-grep from= *.xml | cut -d\" -f2 | grep '[^\]\.[^*]' || echo "(None.)"
+echo "-- Rules with unescaped dots left of a slash:"
+grep from= *.xml | cut -d\" -f2 | egrep 'http.?.?://[^/]*[^\]\.[^*]' || echo "(None.)"
 
 echo
 echo "-- Rules not containing trailing slash in from pattern:"
-- 
1.7.1



More information about the tor-commits mailing list