From 87543f78383eaab0d78d0fadc1655e39f9335517 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 31 Jul 2015 12:01:27 +0100 Subject: Move Latin-char-specific name check to cobrand. Also move some UK-specific code in the same function. The specific code is still tested in report_new.t. --- web/js/fixmystreet.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'web/js') diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index c8f1fe697..78372d68c 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -49,10 +49,6 @@ $(function(){ jQuery.validator.addMethod('validCategory', function(value, element) { return this.optional(element) || value != '-- Pick a category --'; }, translation_strings.category ); - jQuery.validator.addMethod('validName', function(value, element) { - var validNamePat = /\ba\s*n+on+((y|o)mo?u?s)?(ly)?\b/i; - return this.optional(element) || value.length > 5 && value.match( /\S/ ) && value.match( /\s/ ) && !value.match( validNamePat ); }, translation_strings.category ); - var form_submitted = 0; var submitted = false; -- cgit v1.2.3