aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/utils
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-12-02 18:32:57 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-01-08 10:14:05 +0100
commit74b980310852a0b406fa9d073870f92c409d5444 (patch)
tree055cbdf57886077bf3a6ea476813deedb54064e0 /apps/settings/src/utils
parent85bc8513557f5ff37fc283d53893d4cb77ec7c3b (diff)
downloadnextcloud-server-74b980310852a0b406fa9d073870f92c409d5444.tar.gz
nextcloud-server-74b980310852a0b406fa9d073870f92c409d5444.zip
Eslint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/settings/src/utils')
-rw-r--r--apps/settings/src/utils/validate.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/settings/src/utils/validate.js b/apps/settings/src/utils/validate.js
index f7371301909..291223c0737 100644
--- a/apps/settings/src/utils/validate.js
+++ b/apps/settings/src/utils/validate.js
@@ -31,10 +31,10 @@ import { VALIDATE_EMAIL_REGEX } from '../constants/AccountPropertyConstants'
/**
* Validate the string input
*
- * *Generic validator just to check that input is not an empty string*
+ * Generic validator just to check that input is not an empty string*
*
* @param {string} input the input
- * @returns {boolean}
+ * @return {boolean}
*/
export function validateStringInput(input) {
return input !== ''
@@ -43,12 +43,12 @@ export function validateStringInput(input) {
/**
* Validate the email input
*
- * *Compliant with PHP core FILTER_VALIDATE_EMAIL validator*
+ * Compliant with PHP core FILTER_VALIDATE_EMAIL validator*
*
- * *Reference implementation https://github.com/mpyw/FILTER_VALIDATE_EMAIL.js/blob/71e62ca48841d2246a1b531e7e84f5a01f15e615/src/index.ts*
+ * Reference implementation https://github.com/mpyw/FILTER_VALIDATE_EMAIL.js/blob/71e62ca48841d2246a1b531e7e84f5a01f15e615/src/index.ts*
*
* @param {string} input the input
- * @returns {boolean}
+ * @return {boolean}
*/
export function validateEmail(input) {
return typeof input === 'string'
@@ -62,7 +62,7 @@ export function validateEmail(input) {
* Validate the language input
*
* @param {object} input the input
- * @returns {boolean}
+ * @return {boolean}
*/
export function validateLanguage(input) {
return input.code !== ''
@@ -74,7 +74,7 @@ export function validateLanguage(input) {
* Validate boolean input
*
* @param {boolean} input the input
- * @returns {boolean}
+ * @return {boolean}
*/
export function validateBoolean(input) {
return typeof input === 'boolean'