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 (/(https?|ftp):\/\/(-\.)?([^\s/?\.#-]+\.?)+(\/[^\s]*)?$/.test(value)) {
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...' }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",