Przeglądaj źródła

Fix dev comment.

panr 5 lat temu
rodzic
commit
60d498feb6
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      packages/ckeditor5-link/src/linkui.js

+ 2 - 1
packages/ckeditor5-link/src/linkui.js

@@ -161,7 +161,8 @@ export default class LinkUI extends Plugin {
 			// This will cover more dynamic cases, when protocol might change after the element has been rendered.
 			const defaultProtocol = editor.config.get( 'link.defaultProtocol' );
 
-			// The regex checks for the protocol syntax ('xxxx://') or non-word charecters at the begining of the link ('/', '#' etc.).
+			// The regex checks for the protocol syntax ('xxxx://' or 'xxxx:')
+			// or non-word charecters at the begining of the link ('/', '#' etc.).
 			const isProtocolNeeded = !!defaultProtocol && !( /^((\w+:(\/{2,})?)|(\W))/gmi ).test( value );
 			const isEmail = ( /[\w-]+@[\w-]+\.+[\w-]+/gmi ).test( value );