@behance/beff
Advanced tools
Comparing version 9.2.2 to 9.2.3
{ | ||
"name": "@behance/beff", | ||
"version": "9.2.2", | ||
"version": "9.2.3", | ||
"description": "Behance Frontend Framework", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -16,2 +16,3 @@ define(['util/validate'], function(validate) { | ||
'ftp://blah.com', | ||
'fun.stuff.with.urls.co.uk', | ||
]; | ||
@@ -81,3 +82,3 @@ var tests = { | ||
good: goodUrls.concat(goodUrls.map(function(url) { return 'In the ' + url + ' middle'; })), | ||
bad: ['Text without a link', 'a.a', 'http://', 'www.f'] | ||
bad: ['Text without a link', 'a.a', 'http://', 'www.f', 'In other words...I....LOVE IT!', 'I wanted to explore a more intimate and everyday style of Iceland... Glad you like it! :)'] | ||
}, | ||
@@ -84,0 +85,0 @@ |
@@ -139,3 +139,3 @@ define(function() { | ||
ContainsUrl: { | ||
test: test.bind(/([a-zA-Z0-9]+:\/\/)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\.[A-Za-z]{2,4})(:[0-9]+)?(\/.*)?/i), | ||
test: test.bind(/([a-zA-Z0-9]+:\/\/)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9-]+\.[A-Za-z]{2,4})(:[0-9]+)?(\/.*)?/i), | ||
message: 'This field contains a URL' | ||
@@ -142,0 +142,0 @@ }, |
1533926
13297