[2.5] Remove case check from tax rate country REGEX

This commit is contained in:
Mike Jolley 2016-01-27 12:10:36 +00:00
parent 7fb7120d8e
commit 8c85183d6e
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ jQuery( function ( $ ) {
})
.on( 'keyup change', '.wc_input_country_iso[type=text]', function() {
var value = $( this ).val();
var regex = new RegExp( '^([A-Z])?([A-Z])$' );
var regex = new RegExp( '^([a-zA-Z])?([a-zA-Z])$' );
if ( ! regex.test( value ) ) {
$( this ).val( '' );

File diff suppressed because one or more lines are too long

View File

@ -49,7 +49,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<td class="sort"></td>
<td class="country">
<input type="text" value="{{ data.tax_rate_country }}" placeholder="*" name="tax_rate_country[{{ data.tax_rate_id }}]" class="wc_input_country_iso" data-attribute="tax_rate_country" />
<input type="text" value="{{ data.tax_rate_country }}" placeholder="*" name="tax_rate_country[{{ data.tax_rate_id }}]" class="wc_input_country_iso" data-attribute="tax_rate_country" style="text-transform:uppercase" />
</td>
<td class="state">