Automatically convert URLs to links in Quill
Full Changelog: https://github.com/visualjerk/quill-magic-url/compare/4.1.6...4.1.7
Full Changelog: https://github.com/visualjerk/quill-magic-url/compare/4.1.4...4.1.5
Full Changelog: https://github.com/visualjerk/quill-magic-url/compare/4.1.3...4.1.4
Bump dependency versions
urlRegularExpression
and mailRegularExpression
need to have the g
flag to work properly.
This only affects your project, if you use custom regular expressions for url detection.
If you previously defined a custom urlRegularExpression like this:
const quill = new Quill(editor, {
modules: {
magicUrl: {
// Regex used to check URLs during typing
urlRegularExpression: /(https?:\/\/[\S]+)|(www.[\S]+)|(tel:[\S]+)/,
},
},
})
change it to this (notice the g
at the end):
const quill = new Quill(editor, {
modules: {
magicUrl: {
// Regex used to check URLs during typing
urlRegularExpression: /(https?:\/\/[\S]+)|(www.[\S]+)|(tel:[\S]+)/g,
},
},
})