Index: trunk/extensions/UploadWizard/resources/jquery/jquery.validate.wmCommonsBlacklist.js |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | /^JD[\d\s]+$/, // Jenoptik |
73 | 73 | /^SDC[\d\s]+$/, // Samsung |
74 | 74 | /^DVC[\d\s]+$/, // DoCoMo |
75 | | - /^SANY[\d\s]+$/, // Sanyo |
| 75 | + /^SANY[\d\s]+$/ // Sanyo |
76 | 76 | ], |
77 | 77 | |
78 | 78 | // filename from elsewhere |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | /^[^A-Za-z]*(small|medium|large)\)?/, |
90 | 90 | /^(Untitled|No[-_]?name|Picture|Pict?|Image[mn]?|Img|Immagine|Photo|Foto|Bild|Scan|Panorama|Sin_título)[^A-Za-z]*/, |
91 | 91 | /^(January|Jan|February|Febr?|March|Mar|April|Apr|May|June?|July?|August|Aug|September|Sept?|October|Oct|November|Nov|December|Dec)[^A-Za-z]*/, |
92 | | - /^[0-9 ]*([A-Z][0-9 ]*){30,}/, |
| 92 | + /^[0-9 ]*([A-Z][0-9 ]*){30,}/ |
93 | 93 | ], |
94 | 94 | |
95 | 95 | 'titleThumbnail': [ |
— | — | @@ -106,7 +106,8 @@ |
107 | 107 | return function( value, element, params ) { |
108 | 108 | var ok = true; |
109 | 109 | $.each( regexes, function( i, regex ) { |
110 | | - if ( value.match( regex ) ) { |
| 110 | + // if we make a mistake with commas in the above list, IE sometimes gives us an undefined regex, causes nastiness |
| 111 | + if ( typeof regex !== undefined && value.match( regex ) ) { |
111 | 112 | ok = false; |
112 | 113 | return false; |
113 | 114 | } |