Skip to content
This repository
Browse code

Merge pull request #19 from kaerast/patch-1

a hyphen needs escaping in a regex, otherwise weird things are liable to
  • Loading branch information...
commit 1b766f4b7825d2eac92f2b7fb0f7b4f32fa65902 2 parents 5d36dcb + 880a30a
Ryan Seddon authored May 20, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  h5f.js
4  h5f.js
@@ -12,8 +12,8 @@ var H5F = H5F || {};
12 12
 (function(d){
13 13
     
14 14
     var field = d.createElement("input"),
15  
-        emailPatt = /^[a-z0-9_.%+-]+@[0-9a-z.-]+\.[a-z.]{2,6}$/i, 
16  
-        urlPatt = /[a-z][-\.+a-z]*:\/\//i,
  15
+        emailPatt = /^[a-z0-9_.%+\-]+@[0-9a-z.\-]+\.[a-z.]{2,6}$/i, 
  16
+        urlPatt = /[a-z][\-\.+a-z]*:\/\//i,
17 17
         nodes = /^(input|select|textarea)$/i,
18 18
         isSubmit, usrPatt, curEvt, args, custMsg = "",
19 19
         // Methods

0 notes on commit 1b766f4

Please sign in to comment.
Something went wrong with that request. Please try again.