Exclude ?, !, and ) from last character of URL

Now the final character in each of these example strings is no longer
considered part of the URL:
  * Have you seen http://example.com?
  * Look at http://example.com!
  * (see http://example.com)
This commit is contained in:
Richard Hansen 2020-12-12 18:19:08 -05:00 committed by John McLear
parent 7e8de5540f
commit 7d23278ed0
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ describe('urls', function () {
});
describe('punctuation after URL is ignored', function () {
for (const char of ':.,;]') {
for (const char of ':.,;?!)]') {
const want = 'https://etherpad.org';
const input = want + char;
it(input, async function () {