oolib 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -211,7 +211,7 @@ var URLInput = function (props) {
|
|
|
211
211
|
return [2 /*return*/, { type: 'success', msg: 'valid url' }];
|
|
212
212
|
case 3:
|
|
213
213
|
err_1 = _a.sent();
|
|
214
|
-
if (
|
|
214
|
+
if (/\b(([\w-]+:\/\/?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/)))/.test(value)) {
|
|
215
215
|
return [2 /*return*/, { type: 'success', msg: 'valid url' }];
|
|
216
216
|
}
|
|
217
217
|
return [2 /*return*/, { type: 'error', msg: 'Enter a valid url...' }];
|