mirror of
https://github.com/peritus/obsidian-interactive-ratings.git
synced 2026-07-22 05:43:17 +00:00
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:
parent
fb5c9496f1
commit
6d3323601c
1 changed files with 4 additions and 0 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue