Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.inc |
— | — | @@ -184,8 +184,9 @@ |
185 | 185 | if (day_field.value == '' || year_field.value == '') { |
186 | 186 | return true; |
187 | 187 | } else if (day_field.value.match(/^\d+$/) && |
188 | | - day_field.value <= 31 && |
189 | | - year_field.value.match(/^\d+$/)) { |
| 188 | + day_field.value <= 31) { |
| 189 | + // no year validation, since it can also include |
| 190 | + // 'BC' and possibly other non-number strings |
190 | 191 | return true; |
191 | 192 | } else { |
192 | 193 | infobox = document.getElementById(info_id); |