Merge branch 'dev'
This commit is contained in:
@@ -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')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user