We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dd9adb commit b495fdfCopy full SHA for b495fdf
template.php
@@ -45,7 +45,7 @@ function megatron_id_safe($string) {
45
// Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores.
46
$string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string));
47
// If the first character is not a-z, add 'n' in front.
48
- if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware.
+ if (!ctype_lower($string[0])) { // Don't use ctype_alpha since its locale aware.
49
$string = 'id'. $string;
50
}
51
return $string;
0 commit comments