fix: Incorporate pattern for thousand and decimal separator to restrict input to only special characters as valid values.
This commit is contained in:
parent
b6b8061b83
commit
da21cb6270
|
@ -260,7 +260,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
'type' => 'text',
|
||||
'desc_tip' => true,
|
||||
'custom_attributes' => array(
|
||||
'pattern' => '^[^a-zA-Z0-9]*([ ]|[^a-zA-Z0-9])[^a-zA-Z0-9]*$',
|
||||
'pattern' => '[^a-zA-Z\d]{1}',
|
||||
),
|
||||
),
|
||||
|
||||
|
@ -273,7 +273,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
'type' => 'text',
|
||||
'desc_tip' => true,
|
||||
'custom_attributes' => array(
|
||||
'pattern' => '^[^a-zA-Z0-9]*([ ]|[^a-zA-Z0-9])[^a-zA-Z0-9]*$',
|
||||
'pattern' => '[^a-zA-Z\d]{1}',
|
||||
),
|
||||
),
|
||||
|
||||
|
|
Loading…
Reference in New Issue