diff --git a/src/helpers/getListTitle.js b/src/helpers/getListTitle.js index 35c943e3..3f4a9f86 100644 --- a/src/helpers/getListTitle.js +++ b/src/helpers/getListTitle.js @@ -1,6 +1,6 @@ export const getListTitle = (l, $t) => { if (l.id === -1) { - return $t('list.pseudo.favorites.title'); + return $t('list.pseudo.favorites.title') } - return l.title; + return l.title } diff --git a/src/helpers/getNamespaceTitle.js b/src/helpers/getNamespaceTitle.js index 21fe7b7e..41eb35a5 100644 --- a/src/helpers/getNamespaceTitle.js +++ b/src/helpers/getNamespaceTitle.js @@ -1,12 +1,12 @@ export const getNamespaceTitle = (n, $t) => { if (n.id === -1) { - return $t('namespace.pseudo.sharedLists.title'); + return $t('namespace.pseudo.sharedLists.title') } if (n.id === -2) { - return $t('namespace.pseudo.favorites.title'); + return $t('namespace.pseudo.favorites.title') } if (n.id === -3) { - return $t('namespace.pseudo.savedFilters.title'); + return $t('namespace.pseudo.savedFilters.title') } - return n.title; + return n.title } diff --git a/src/helpers/parseTaskText.js b/src/helpers/parseTaskText.js index e7c70752..2ad0e75d 100644 --- a/src/helpers/parseTaskText.js +++ b/src/helpers/parseTaskText.js @@ -48,10 +48,10 @@ const getItemsFromPrefix = (text, prefix) => { } let labelText - if (p.charAt(0) === `'`) { - labelText = p.split(`'`)[1] - } else if (p.charAt(0) === `"`) { - labelText = p.split(`"`)[1] + if (p.charAt(0) === '\'') { + labelText = p.split('\'')[1] + } else if (p.charAt(0) === '"') { + labelText = p.split('"')[1] } else { // Only until the next space labelText = p.split(' ')[0] diff --git a/src/helpers/replaceAll.js b/src/helpers/replaceAll.js index db6834b1..07fb0163 100644 --- a/src/helpers/replaceAll.js +++ b/src/helpers/replaceAll.js @@ -9,7 +9,7 @@ * @returns {*} */ export const replaceAll = (str, search, replace) => { - const esc = search.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'); - const reg = new RegExp(esc, 'ig'); - return str.replace(reg, replace); + const esc = search.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&') + const reg = new RegExp(esc, 'ig') + return str.replace(reg, replace) } \ No newline at end of file diff --git a/src/i18n/setup.js b/src/i18n/setup.js index cec9c644..2122852d 100644 --- a/src/i18n/setup.js +++ b/src/i18n/setup.js @@ -41,7 +41,7 @@ export const loadLanguageAsync = lang => { i18n.setLocaleMessage(lang, messages.default) loadedLanguages.push(lang) return setI18nLanguage(lang) - } + }, ) } diff --git a/src/main.js b/src/main.js index 7475e957..bc1c1646 100644 --- a/src/main.js +++ b/src/main.js @@ -73,7 +73,7 @@ import { faStar, faTimesCircle, faSun, - faBellSlash + faBellSlash, } from '@fortawesome/free-regular-svg-icons' import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome' // PWA diff --git a/src/views/namespaces/settings/archive.vue b/src/views/namespaces/settings/archive.vue index 4f185e8c..60501ec8 100644 --- a/src/views/namespaces/settings/archive.vue +++ b/src/views/namespaces/settings/archive.vue @@ -22,7 +22,7 @@ export default { return { namespaceService: NamespaceService, namespace: null, - title: '' + title: '', } }, created() {