diff --git a/app/lib/doi_checker.rb b/app/lib/doi_checker.rb index 42bc958d..e0e400c8 100644 --- a/app/lib/doi_checker.rb +++ b/app/lib/doi_checker.rb @@ -137,7 +137,7 @@ def acm_105555_prefix(entry) if entry.has_field?('doi') && entry.doi.include?("10.5555/") { validity: :invalid, msg: "#{entry.doi} is INVALID - 10.5555 is a known broken prefix, replace with https://dl.acm.org/doi/{doi} in the {url} field" } elsif entry.has_field?('url') && entry.url.include?("https://dl.acm.org/doi/10.5555") - { validity: :skip, msg: "#{entry.url} - correctly put 10.5555 prefixed doi in the url field, editor should ensure this resolves" } + { validity: :skip, msg: "#{entry.url} - non-DOI with 10.5555 correctly placed in the url field, editor should ensure this resolves" } else false end diff --git a/spec/doi_checker_spec.rb b/spec/doi_checker_spec.rb index e6c9a75b..a5b9937b 100644 --- a/spec/doi_checker_spec.rb +++ b/spec/doi_checker_spec.rb @@ -128,7 +128,7 @@ entry = BibTeX::Entry.new(url: "https://dl.acm.org/doi/10.5555/2827719.2827740") validity = subject.handle_special_case(entry) expect(validity[:validity]).to eq(:skip) - expect(validity[:msg]).to eq("https://dl.acm.org/doi/10.5555/2827719.2827740 - correctly put 10.5555 prefixed doi in the url field, editor should ensure this resolves") + expect(validity[:msg]).to eq("https://dl.acm.org/doi/10.5555/2827719.2827740 - non-DOI with 10.5555 correctly placed in the url field, editor should ensure this resolves") end it "should handle special cases separately from normal DOI checking" do