See https://www.woltlab.com/community/thread/310038-smileyerkennung-scheint-nicht-zu-richtig-zu-funktionieren/
}
/**
- * Return all smileys that match `:[a-z]+(?:_[a-z]+)*:`.
+ * Return all smileys that match `:[a-z][a-z0-9]*+(?:_[a-z0-9]+)*:`.
*
* @return Smiley[]
* @since 6.1
foreach ($this->getVisibleCategories() as $category) {
foreach ($category as $smiley) {
foreach ($smiley->smileyCodes as $smileyCode) {
- if (\preg_match('~^:[a-z]+(?:_[a-z]+)*:$~', $smileyCode)) {
+ if (\preg_match('~^:[a-z][a-z0-9]*+(?:_[a-z0-9]+)*:$~', $smileyCode)) {
$this->emojis[$smileyCode] = $smiley;
}
}