mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
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:
parent
7e8de5540f
commit
7d23278ed0
2 changed files with 2 additions and 2 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue