diff --git a/src/components/LinkPreview.js b/src/components/LinkPreview.js index 497c49c..fd61857 100644 --- a/src/components/LinkPreview.js +++ b/src/components/LinkPreview.js @@ -15,7 +15,7 @@ const isValidUrlProp = (props, propName, componentName) => { const isValidUrl = (url) => { const regex = - /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/ + /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/ const validUrl = regex.test(url) return validUrl }