Skip to content
Snippets Groups Projects

3477626 fixed font family validation regex

Merged Wojciech Kukowski requested to merge issue/ckeditor5_plugin_pack-3477626:3477626 into 1.2.x
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -99,7 +99,8 @@ Enter one or more values (one value = one line). Note that the "default" font is
$returnOptions = [];
$wrongValues = [];
if ($options) {
$regex = '/\b\w+\b,\s*\b\w+\b/';
$regex = '/[\w\,\-\s]*/';
$options = str_replace(array("\r\n", "\r"), "\n", $options);
$options = explode("\n", $options);
foreach ($options as $option) {
$trimmedOption = trim($option);
Loading