Skip to content

Commit

Permalink
fix parse method
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Jun 6, 2023
1 parent 69f86fa commit bfb6a30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "XML"
uuid = "72c71f33-b9b6-44de-8c94-c961784809e2"
authors = ["Josh Day <emailjoshday@gmail.com> and contributors"]
version = "0.2.2"
version = "0.2.3"

[deps]
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
Expand Down
2 changes: 1 addition & 1 deletion src/raw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Base.read(filename::String, ::Type{Raw}) = isfile(filename) ?

Base.read(io::IO, ::Type{Raw}) = Raw(read(io))

parse(x::AbstractString, ::Type{Raw}) = Raw(Vector{UInt8}(x))
Base.parse(x::AbstractString, ::Type{Raw}) = Raw(Vector{UInt8}(x))

# Mostly for debugging
Base.peek(o::Raw, n::Int) = String(@view(o.data[o.pos + o.len + 1:min(end, o.pos + o.len + n + 1)]))
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ end
]>
"""

doc = parse(s, Node)
doc = parse(Node, s)
@test value(only(doc)) == """note [
<!ENTITY nbsp "&#xA0;">
<!ENTITY writer "Writer: Donald Duck.">
Expand Down

2 comments on commit bfb6a30

@joshday
Copy link
Member Author

@joshday joshday commented on bfb6a30 Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/85018

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.3 -m "<description of version>" bfb6a30ecedf9422c3beda84e37a07a8d5046c73
git push origin v0.2.3

Please sign in to comment.