Skip to content

Commit

Permalink
Allow parsing multiple endlines (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noarkhh authored Jan 16, 2024
1 parent 97db6bd commit dcdf029
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The package can be installed by adding `ex_sdp` to your list of dependencies in
```elixir
def deps do
[
{:ex_sdp, "~> 0.14.0"}
{:ex_sdp, "~> 0.14.1"}
]
end
```
Expand Down
3 changes: 3 additions & 0 deletions lib/ex_sdp/media.ex
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ defmodule ExSDP.Media do

def parse_optional([""], media), do: {:ok, {[""], finalize_optional_parsing(media)}}

def parse_optional(["" | rest], media),
do: parse_optional(rest, media)

def parse_optional(["m=" <> _ | _] = lines, media),
do: {:ok, {lines, finalize_optional_parsing(media)}}

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule ExSDP.MixProject do
use Mix.Project

@version "0.14.0"
@version "0.14.1"
@github_url "https://github.com/membraneframework/ex_sdp"

def project do
Expand Down

0 comments on commit dcdf029

Please sign in to comment.