File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ PATH (?:%{UNIXPATH}|%{WINPATH})
3737UNIXPATH (/([\w_%!$@:.,+~-]+|\\.)*)+
3838TTY (?:/dev/(pts|tty([pq])?)(\w+)?/?(?:[0-9]+))
3939WINPATH (?>[A-Za-z]+:|\\)(?:\\[^\\?*]*)+
40- URIPROTO [A-Za-z]+(\+ [A-Za-z+ ]+)?
40+ URIPROTO [A-Za-z]( [A-Za-z0-9+\-. ]+)+
4141URIHOST %{IPORHOST}(?::%{POSINT:port})?
4242# uripath comes loosely from RFC1738, but mostly from what Firefox
4343# doesn't turn into %XX
Original file line number Diff line number Diff line change 103103 end
104104end
105105
106+ describe "URIPROTO" do
107+ let ( :pattern ) { 'URIPROTO' }
108+
109+ context "http is a valid URIPROTO" do
110+ let ( :value ) { 'http' }
111+
112+ it "should match" do
113+ expect ( grok_match ( pattern , value ) ) . to pass
114+ end
115+ end
116+
117+ context "android-app is a valid URIPROTO" do
118+ let ( :value ) { 'android-app' }
119+
120+ it "should match" do
121+ expect ( grok_match ( pattern , value ) ) . to pass
122+ end
123+ end
124+ end
125+
106126describe "URIPATH" do
107127 let ( :pattern ) { 'URIPATH' }
108128
You can’t perform that action at this time.
0 commit comments