Skip to content

Commit

Permalink
updates function docstring to reflect new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mattoberle committed Apr 12, 2021
1 parent d4e1cd7 commit 82bf908
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/quill/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ const Inline = Quill.import('blots/inline');
* - #{anchor}
* - /{path}
*
* Note: We cannot use a try/catch on 'new URL' here because some browsers
* will automatically encode spaces. Kiln prepends values with "https://" when
* an explicit protocol is not provided. These two behaviors combined result
* in almost *any* value getting coerced to something that will pass validation.
* Note: We do not use a try/catch on 'new URL' here because browsers
* vary in their implementation. Some will allow spaces (encoding them),
* others will throw if spaces are encountered.
*
* Same-site links that start with "/" pass validation because they may be the
* result of an import process or exist historically (even though Kiln does
Expand Down

0 comments on commit 82bf908

Please sign in to comment.