Merge branch 'dev'

This commit is contained in:
Mo Tarbin
2025-07-19 00:55:56 -04:00

View File

@@ -6,7 +6,7 @@ const renderHighlightedText = (text, cursorPosition) => {
const parts = [] const parts = []
let lastIndex = 0 let lastIndex = 0
const regex = /(Tomorrow)|(#\w+)|(P\d)/gi const regex = /(Tomorrow)|(Every\s+\d+\s+\w+s?)|(#\w+)|(P\d+)/gi
let match let match
while ((match = regex.exec(text)) !== null) { while ((match = regex.exec(text)) !== null) {
@@ -20,6 +20,8 @@ const renderHighlightedText = (text, cursorPosition) => {
let className = '' let className = ''
if (matchedText.toLowerCase() === 'tomorrow') { if (matchedText.toLowerCase() === 'tomorrow') {
className = 'highlight-date' className = 'highlight-date'
} else if (matchedText.toLowerCase().startsWith('every')) {
className = 'highlight-repeat'
} else if (matchedText.startsWith('#')) { } else if (matchedText.startsWith('#')) {
className = 'highlight-label' className = 'highlight-label'
} else if (matchedText.startsWith('P')) { } else if (matchedText.startsWith('P')) {