79396700

Date: 2025-01-29 12:21:29
Score: 0.5
Natty:
Report link

You could use Zod for it:

import { z } from "zod";
const DurationSchema = z.string().duration()
DurationSchema.parse("P2W")

More information: https://zod.dev/?id=strings

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Pedro Andrade