mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-25 15:06:26 -08:00
Bug: Hex not working when uppercase
This commit is contained in:
parent
9089f876a2
commit
5afc025851
|
@ -166,7 +166,7 @@ authRoutes.post("/embedcolor", requiresAccount, parser, (req,res) => {
|
||||||
if (
|
if (
|
||||||
|
|
||||||
!req.body.color
|
!req.body.color
|
||||||
|| (req.body.color.toLowerCase().match(/[a-f0-9]+/) == req.body.color)
|
|| (req.body.color.toLowerCase().match(/[a-f0-9]+/) == req.body.color.toLowerCase())
|
||||||
&& req.body.color.length == 6
|
&& req.body.color.length == 6
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue