Skip to content

Commit

Permalink
Merge pull request #2363 from quantified-uncertainty/sweep/fix-color-…
Browse files Browse the repository at this point in the history
…input

Fix issue with color input in Relative Values clusters
  • Loading branch information
OAGr authored Oct 28, 2023
2 parents 1994eec + 20cfe64 commit 7c5a6c7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { builder } from "@/graphql/builder";
import { prisma } from "@/prisma";

import { InputObjectRef } from "@pothos/core";
import { rethrowOnConstraint } from "../errors/common";
import { getWriteableOwner, getWriteableOwnerBySlug } from "../types/Owner";
import { RelativeValuesDefinition } from "../types/RelativeValuesDefinition";
import { validateSlug } from "../utils";
import { ZodError } from "zod";

const validateColor = { regex: /^#[0-9a-f]{6}$/ };
const validateColor = { regex: /^#[0-9a-fA-F]{6}$/ };

export const RelativeValuesClusterInput = builder.inputType(
"RelativeValuesClusterInput",
Expand Down

1 comment on commit 7c5a6c7

@vercel
Copy link

@vercel vercel bot commented on 7c5a6c7 Oct 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.