mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Add '
and *
to acceptable URL characters
These characters are in the RFC3986 reserved set. These characters are added to the set of characters that cannot be the last character of a URL to avoid mislinkification.
This commit is contained in:
parent
7d23278ed0
commit
a44debdcfe
2 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ describe('urls', function () {
|
|||
});
|
||||
|
||||
describe('special characters inside URL', function () {
|
||||
for (const char of '-:@_.,~%+/?=&#!;()$') {
|
||||
for (const char of '-:@_.,~%+/?=&#!;()$\'*') {
|
||||
const url = `https://etherpad.org/${char}foo`;
|
||||
it(url, async function () {
|
||||
await helper.edit(url);
|
||||
|
@ -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