Skip to content

Commit

Permalink
Escaped Dash in RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Aug 21, 2012
1 parent 28db4e2 commit a892881
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/js/build.xml
Expand Up @@ -149,7 +149,6 @@
<report type="xml" destfile="${build.dir}/jshint.out.xml" />
<include name="**/*.js"/>
<exclude name="**/*.min.js"/>
<exclude name="i18n/formvalid/methods_nl.js"/>
<exclude name="jquery.mobile/jquery.mobile.js"/>
<exclude name="polyfills/datalist.js"/>
<exclude name="polyfills/detailssummary.js"/>
Expand Down
2 changes: 1 addition & 1 deletion src/js/i18n/formvalid/methods_nl.js
Expand Up @@ -4,6 +4,6 @@
*/
jQuery.extend(jQuery.validator.methods, {
date: function(value, element) {
return this.optional(element) || /^\d\d?[\.\/-]\d\d?[\.\/-]\d\d\d?\d?$/.test(value);
return this.optional(element) || /^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(value);
}
});

0 comments on commit a892881

Please sign in to comment.