Subversion Repositories DevTools

Rev

Rev 1372 | Rev 2546 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1372 Rev 2362
Line 136... Line 136...
136
            }
136
            }
137
 
137
 
138
            if (test.indexOf('isCCPath')!=-1) {
138
            if (test.indexOf('isCCPath')!=-1) {
139
               var CCPathRE = /^\\|\/[a-z]+[0-9a-z_\.\-\\\/ ]+$/i;
139
               var CCPathRE = /^\\|\/[a-z]+[0-9a-z_\.\-\\\/ ]+$/i;
140
 
140
 
-
 
141
               REresults = val.search(/^(\\|\/)/);
-
 
142
               if (REresults < 0) errors += val + '- '+nm+' must begin with \\ or /\n';
-
 
143
               
141
               REresults = val.search(CCPathRE);
144
               REresults = val.search(CCPathRE);
142
               if (REresults < 0) errors += val + '- '+nm+' uses invalid character.\nAllowed characters are \\ / A-Z a-z 0-9 . - _ SPACE\nAnd the path must begin with \\ or /';
145
               if (REresults < 0) errors += val + '- '+nm+' uses invalid character.\nAllowed characters are \\ / A-Z a-z 0-9 . - _ SPACE\n';
143
            }
146
            }
144
 
147
 
145
            if (test.indexOf('isCCLabel')!=-1) {
148
            if (test.indexOf('isCCLabel')!=-1) {
146
               var CCLabelRE = /^[0-9a-z_\.\-]+$/i;
149
               var CCLabelRE = /^[0-9a-z_\.\-]+$/i;
147
 
150
 
148
               REresults = val.search(CCLabelRE);
151
               REresults = val.search(CCLabelRE);
149
               if (REresults < 0) errors += val + '- '+nm+' uses invalid character. Allowed characters are A-Z a-z 0-9 . - _\n';
152
               if (REresults < 0) errors += val + '- '+nm+' uses invalid character.\nAllowed characters are A-Z a-z 0-9 . - _\n';
150
            }
153
            }
151
 
154
 
152
            if (test.indexOf('isSVNTag')!=-1) {
155
            if (test.indexOf('isSVNTag')!=-1) {
153
                // Subversion Tag validation
156
                // Subversion Tag validation
154
                var SVNTagValidPeg = /^@?\d+$/;
157
                var SVNTagValidPeg = /^@?\d+$/;