File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,6 @@ class FontManager extends EventEmitter {
6969 return / ^ [ - \w ] + $ / . test ( family ) ;
7070 }
7171
72- /**
73- * @deprecated only exists for extension compatibility, use isValidSystemFont or isValidCustomFont instead
74- */
75- isValidFamily ( family ) {
76- return this . isValidSystemFont ( family ) && this . isValidCustomFont ( family ) ;
77- }
78-
7972 /**
8073 * @param {string } family Untrusted font name input
8174 * @returns {boolean } true if the family is valid for a custom font
@@ -84,6 +77,13 @@ class FontManager extends EventEmitter {
8477 return / ^ [ - \w ] + $ / . test ( family ) && ! this . restrictedFonts . has ( family . toLowerCase ( ) ) ;
8578 }
8679
80+ /**
81+ * @deprecated only exists for extension compatibility, use isValidSystemFont or isValidCustomFont instead
82+ */
83+ isValidFamily ( family ) {
84+ return this . isValidSystemFont ( family ) && this . isValidCustomFont ( family ) ;
85+ }
86+
8787 /**
8888 * @param {string } family Untrusted font name input
8989 * @returns {string }
You can’t perform that action at this time.
0 commit comments