Add logging to emoji settings parsing

- Add console.log output to dump parsed emoji array when LOGGING_ENABLED
- No changes to functionality or output, just debug visibility
- Shows exactly how ZWJ sequences and other emojis are being parsed
This commit is contained in:
Filip Noetzel 2025-09-06 15:29:50 +02:00
parent fb5c9496f1
commit 6d3323601c

View file

@ -14,6 +14,10 @@ export function updateSymbolPatternsFromSettings(settings: InteractiveRatingsSet
const segmenter = new Intl.Segmenter('en', { granularity: 'grapheme' });
const emojis = Array.from(segmenter.segment(settings.supportedEmojis), segment => segment.segment);
if (LOGGING_ENABLED) {
console.log('[InteractiveRatings] Parsed emojis from settings:', emojis);
}
for (const emoji of emojis) {
if (emoji.trim()) { // Skip empty characters and whitespace
newPatterns.push({