Permalink
Browse files

Rebuilt generated files

  • Loading branch information...
1 parent f45e4ac commit 64a8a4fd370787df6c0c1c0485778791b8c2e700 Brent C committed May 23, 2012
Showing with 8 additions and 6 deletions.
  1. +3 −2 jquery.preview.full.js
  2. +1 −1 jquery.preview.full.min.js
  3. +3 −2 jquery.preview.js
  4. +1 −1 jquery.preview.min.js
@@ -2068,14 +2068,14 @@ function Preview(elem, options) {
}
// Simple regex to make sure the url with a scheme is valid.
- var urlexp = /^http(s?):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
+ var urlexp = /^http(s?):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/i;
var matches = status.match(urlexp);
var url = matches? matches[0] : null;
//No urls is the status. Try for urls without scheme i.e. example.com
if (url === null) {
- urlexp = /[-\w]+(\.[a-z]{2,})+(\S+)?(\/|\/[\w#!:.?+=&%@!\-\/])?/g;
+ urlexp = /[-\w]+(\.[a-z]{2,})+(\S+)?(\/|\/[\w#!:.?+=&%@!\-\/])?/gi;
matches = status.match(urlexp);
url = matches? 'http://'+matches[0] : null;
}
@@ -2355,6 +2355,7 @@ function Preview(elem, options) {
return Preview;
}
+
// Sets up an initial $.preview for use before the form is initialized.
// Useful for early access to display if needed.
$.preview = new Preview(null, {});
Oops, something went wrong.
View
@@ -811,14 +811,14 @@ function Preview(elem, options) {
}
// Simple regex to make sure the url with a scheme is valid.
- var urlexp = /^http(s?):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
+ var urlexp = /^http(s?):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/i;
var matches = status.match(urlexp);
var url = matches? matches[0] : null;
//No urls is the status. Try for urls without scheme i.e. example.com
if (url === null) {
- urlexp = /[-\w]+(\.[a-z]{2,})+(\S+)?(\/|\/[\w#!:.?+=&%@!\-\/])?/g;
+ urlexp = /[-\w]+(\.[a-z]{2,})+(\S+)?(\/|\/[\w#!:.?+=&%@!\-\/])?/gi;
matches = status.match(urlexp);
url = matches? 'http://'+matches[0] : null;
}
@@ -1098,6 +1098,7 @@ function Preview(elem, options) {
return Preview;
}
+
// Sets up an initial $.preview for use before the form is initialized.
// Useful for early access to display if needed.
$.preview = new Preview(null, {});
Oops, something went wrong.

0 comments on commit 64a8a4f

Please sign in to comment.