mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 18:50:13 +00:00
fix: correctly submit a birthday divided by / instead of -
This commit is contained in:
parent
a33d736693
commit
27226af56e
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,9 @@
|
||||||
err.push(`${data.birthday} is not a valid date, please use the following format: YYYY-MM-DD. (example: 2019-07-21)`);
|
err.push(`${data.birthday} is not a valid date, please use the following format: YYYY-MM-DD. (example: 2019-07-21)`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (data.birthday.includes('/')) {
|
||||||
|
data.birthday.replace('/', '-');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
err = err;
|
err = err;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue