Subversion Repositories DevTools

Rev

Rev 3959 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3959 Rev 4025
Line 268... Line 268...
268
                 p=test.indexOf(':');
268
                 p=test.indexOf(':');
269
                 max=test.substring(p+1);
269
                 max=test.substring(p+1);
270
                 if (val.length>max) errors+='- '+nm+' can be maximum '+max+' characters long.\n';
270
                 if (val.length>max) errors+='- '+nm+' can be maximum '+max+' characters long.\n';
271
              }
271
              }
272
 
272
 
-
 
273
              if (test.indexOf('minLength')!=-1) {
-
 
274
                 p=test.indexOf(':');
-
 
275
                 max=test.substring(p+1);
-
 
276
                 if (val.length<max) errors+='- '+nm+' must be minimum '+max+' characters long.\n';
-
 
277
              }
-
 
278
 
273
              if (test.indexOf('notHTML')!=-1) {
279
              if (test.indexOf('notHTML')!=-1) {
274
                 if (val.match(HTMLchr)) errors+='- '+nm+' has invalid characters like \'< > quotes\'\n';
280
                 if (val.match(HTMLchr)) errors+='- '+nm+' has invalid characters like \'< > quotes\'\n';
275
              }
281
              }
276
 
282
 
277
              if (test.charAt(0)=='R') {
283
              if (test.charAt(0)=='R') {