mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/17326] Update regex checks for font icon in php and js files
PHPBB-17326
This commit is contained in:
committed by
Marc Alexander
parent
bb956539a4
commit
53d7fff391
@@ -280,7 +280,10 @@ function parse_document(container)
|
||||
|
||||
// Live update BBCode font icon preview
|
||||
$('#bbcode_font_icon').on('keyup', function(e) {
|
||||
$('#bbcode_icon_preview').attr('class', "o-icon o-icon-font fa-fw fas icon fa-" + $(this).val());
|
||||
const iconName = $(this).val();
|
||||
if (iconName.match(/^[\w-]+$/)) {
|
||||
$('#bbcode_icon_preview').attr('class', "o-icon o-icon-font fa-fw fas icon fa-" + $(this).val());
|
||||
}
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
|
Reference in New Issue
Block a user