We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ffdbb0 commit 8fdbd04Copy full SHA for 8fdbd04
1 file changed
event/listener.php
@@ -124,13 +124,13 @@ public function validate_googleanalytics_id($event)
124
$input = $event['cfg_array']['googleanalytics_id'];
125
126
// Check if the validate test is for google_analytics
127
- if (($event['config_definition']['validate'] == 'googleanalytics_id') && ($input is !== ''))
+ if (($event['config_definition']['validate'] == 'googleanalytics_id') && ($input !== ''))
128
{
129
// Store the error and input event data
130
$error = $event['error'];
131
132
// Add error message if the input is not a valid Google Analytics ID
133
- if (!preg_match('/^ua-\d{4,9}-\d{1,4}$/i', $input))
+ if (!preg_match('/^UA-\d{4,9}-\d{1,4}$/', $input))
134
135
$error[] = $this->user->lang('ACP_GOOGLEANALYTICS_ID_INVALID', $input);
136
}
0 commit comments