This PR modifies the code to ensure that article titles containing a dash are only replaced with a colon if the article is not identified. If the article is identified after the modification, the modified title is used; otherwise, the original title with the dash is retained.
Caveats
No caveats.
Testing
Test with an identified article containing a dash in the title.
Test with an unidentified article containing a dash in the title.
Verify that the title modification behaves as expected in both cases.
Checklist
[x] My code passes the tox check, I can receive warnings about tests, documentation, or both
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] I have not used code from external sources without attribution
[x] I have considered accessibility in my implementation
[x] There are no remaining debug statements (print, console.log, ...)
Fixes #2420
Description
This PR modifies the code to ensure that article titles containing a dash are only replaced with a colon if the article is not identified. If the article is identified after the modification, the modified title is used; otherwise, the original title with the dash is retained.
Caveats
No caveats.
Testing
Checklist