lib/sdp/parser.rb in sdp-0.2.8 vs lib/sdp/parser.rb in sdp-0.2.9
- old
+ new
@@ -33,11 +33,11 @@
rule(:information) do
str('i=') >> field_value_string.as(:information) >> eol
end
- rule(:uri) { str('u=') >> field_value.as(:uri) >> eol }
+ rule(:uri) { str('u=') >> field_value.as(:uri) >> eol }
rule(:email_address) do
str('e=') >> field_value_string.as(:email_address) >> eol
end
@@ -95,12 +95,12 @@
field_value.as(:protocol) >> space >>
field_value.as(:format) >> eol
end
# Generics
- rule(:space) { match('[ ]').repeat(1) }
- rule(:eol) { match('[\r]').maybe >> match('[\n]') }
- rule(:field_value) { match('\S').repeat }
+ rule(:space) { match('[ ]').repeat(1) }
+ rule(:eol) { match('[\r]').maybe >> match('[\n]') }
+ rule(:field_value) { match('\S').repeat }
rule(:field_value_string) { match('[^\r\n]').repeat }
# The SDP description
rule(:session_section) do
version.maybe >> origin.maybe >> session_name.maybe >>