@@ -138,8 +138,8 @@ def scope
138138
139139 on ( '--scope-url-rewrite PATTERN:SUBSTITUTION' ,
140140 'Rewrite URLs based on the given PATTERN and SUBSTITUTION.' ,
141- 'To convert: http://test .com/articles/some-stuff/23 to http://test .com/articles.php?id=23' ,
142- 'Use: / articles\ /[\w-]+\ /(\d+)/ :articles.php?id=\1'
141+ 'To convert: http://example .com/articles/some-stuff/23 to http://example .com/articles.php?id=23' ,
142+ 'Use: articles/[\w-]+/(\d+):articles.php?id=\1'
143143 ) do |rule |
144144 pattern , substitution = rule . split ( ':' , 2 )
145145 options . scope . url_rewrites [ Regexp . new ( pattern ) ] =
@@ -191,9 +191,9 @@ def audit
191191 on ( '--audit-link-template TEMPLATE' , Regexp ,
192192 'Regular expression with named captures to use to extract input information from generic paths.' ,
193193 "To extract the 'input1' and 'input2' inputs from:" ,
194- ' http://test .com/input1/value1/input2/value2' ,
194+ ' http://example .com/input1/value1/input2/value2' ,
195195 'Use:' ,
196- ' / input1\ /(?<input1>\w+)\ /input2\ /(?<input2>\w+)/ ' ,
196+ ' input1/(?<input1>\w+)/input2/(?<input2>\w+)' ,
197197 '(Can be used multiple times.)'
198198 ) do |pattern |
199199 # We merge this way to enforce validation from the options group.
0 commit comments