1
0

fix: tests

This commit is contained in:
kolaente
2023-06-12 16:35:47 +02:00
parent cd8e497b24
commit 69e94e58c4
2 changed files with 14 additions and 13 deletions

View File

@ -140,11 +140,11 @@ export const getProjectFromPrefix = (text: string, prefixMode: PrefixMode): stri
}
export const getLabelsFromPrefix = (text: string, prefixMode: PrefixMode): string[] | null => {
const projectPrefix = PREFIXES[prefixMode]?.project
if(typeof projectPrefix === 'undefined') {
const labelsPrefix = PREFIXES[prefixMode]?.label
if(typeof labelsPrefix === 'undefined') {
return null
}
return getItemsFromPrefix(text, projectPrefix)
return getItemsFromPrefix(text, labelsPrefix)
}
const getPriority = (text: string, prefix: string): number | null => {