Skip to content

Commit

Permalink
Addressable::URI error reporting: #809
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Aug 9, 2023
1 parent effed5e commit 6e69c03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/metanorma/standoc/cleanup_inline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def passthrough_cleanup(doc)
def link_cleanup(xmldoc)
xmldoc.xpath("//link[@target]").each do |l|
l["target"] = Addressable::URI.parse(l["target"]).to_s
rescue StandardError
rescue Addressable::URI::InvalidURIError
err = "Malformed URI: #{l['target']}"
@log.add("Anchors", l, err)
@fatalerror << err
Expand Down
2 changes: 1 addition & 1 deletion spec/metanorma/validate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
:docfile: test.adoc
:nodoc:
http://a@x@x@www.com[x]
http://a@x@x@[x]
INPUT
expect do
Expand Down

0 comments on commit 6e69c03

Please sign in to comment.