mirror of
https://github.com/versia-pub/api.git
synced 2026-03-13 04:09:15 +01:00
fix(build): 🐛 Fix builds for JSR support
This commit is contained in:
parent
0d53c450f8
commit
f5fd4c0a04
6 changed files with 13 additions and 16 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* @see https://lysand.org/extensions/vanity
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import { type AnyZodObject, ZodObject, z } from "zod";
|
||||
import { ContentFormat } from "../content_format";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import {
|
|||
/**
|
||||
* Regular expression for matching emojis.
|
||||
*/
|
||||
export const emojiRegex = createRegExp(
|
||||
export const emojiRegex: RegExp = createRegExp(
|
||||
// A-Z a-z 0-9 _ -
|
||||
oneOrMore(letter.or(digit).or(exactly("_")).or(exactly("-"))),
|
||||
[caseInsensitive, global],
|
||||
|
|
@ -28,7 +28,7 @@ export const emojiRegex = createRegExp(
|
|||
* Regular expression for matching an extension_type
|
||||
* @example org.lysand:custom_emojis/Emoji
|
||||
*/
|
||||
export const extensionTypeRegex = createRegExp(
|
||||
export const extensionTypeRegex: RegExp = createRegExp(
|
||||
// org namespace, then colon, then alphanumeric/_/-, then extension name
|
||||
exactly(
|
||||
oneOrMore(exactly(letter.lowercase.or(digit).or(charIn("_-.")))),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue