[2.5] Remove case check from tax rate country REGEX
This commit is contained in:
parent
7fb7120d8e
commit
8c85183d6e
|
@ -53,7 +53,7 @@ jQuery( function ( $ ) {
|
||||||
})
|
})
|
||||||
.on( 'keyup change', '.wc_input_country_iso[type=text]', function() {
|
.on( 'keyup change', '.wc_input_country_iso[type=text]', function() {
|
||||||
var value = $( this ).val();
|
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 ) ) {
|
if ( ! regex.test( value ) ) {
|
||||||
$( this ).val( '' );
|
$( this ).val( '' );
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -49,7 +49,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
<td class="sort"></td>
|
<td class="sort"></td>
|
||||||
|
|
||||||
<td class="country">
|
<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>
|
||||||
|
|
||||||
<td class="state">
|
<td class="state">
|
||||||
|
|
Loading…
Reference in New Issue