-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8933 from ckeditor/i/8881-autolink-regexp
Fix (link): IP addresses should be converted into links while typing by the Autolink feature. Closes #8881.
- Loading branch information
Showing
3 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<div id="snippet-autolink"> | ||
<p>Press <i>Space</i> after a link to see the magic of autolinking: https://ckeditor.com/</p> | ||
<p>This feature also works with e-mail addresses: [email protected]</p> | ||
<p>and IP addresses: http://172.217.18.110</p> | ||
<p>You can use <i>Enter</i> or <i>Shift+Enter</i> to achieve the same result: https://ckeditor.com/</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,7 +271,11 @@ describe( 'AutoLink', () => { | |
'http://例子.测试', | ||
'http://उदाहरण.परीक्षा', | ||
'http://1337.net', | ||
'http://a.b-c.de' | ||
'http://a.b-c.de', | ||
'http://127.0.0.1:8080/ckeditor5/latest/features/link.html', | ||
'http://192.168.43.58/ckeditor5/latest/features/link.html', | ||
'http://83.127.13.40', | ||
'http://[email protected]' | ||
]; | ||
|
||
for ( const supportedURL of supportedURLs ) { | ||
|
@@ -311,7 +315,8 @@ describe( 'AutoLink', () => { | |
'http://localhost', | ||
'http:/cksource.com', | ||
'cksource.com', | ||
'ww.cksource.com' | ||
'ww.cksource.com', | ||
'www.cksource' | ||
]; | ||
|
||
for ( const unsupportedURL of unsupportedOrInvalid ) { | ||
|