You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @return string The font family name with surrounding quotes if necessary.
33
+
* @return string The font family name with surrounding quotes, if necessary.
37
34
*/
38
35
privatestaticfunctionmaybe_add_quotes( $item ) {
39
-
// Match any non alphabetic characters (a-zA-Z), dashes -, or parenthesis ().
40
-
$regex = '/[^a-zA-Z\-()]+/';
36
+
// Matches strings that are not exclusively alphabetic characters or hyphens, and do not exactly follow the pattern generic(alphabetic characters or hyphens).
// Matchs any non alphabetic characters (a-zA-Z), dashes - , or parenthesis ()
51
-
constregex=/[^a-zA-Z\-()]+/;
50
+
// Matches strings that are not exclusively alphabetic characters or hyphens, and do not exactly follow the pattern generic(alphabetic characters or hyphens).
0 commit comments