mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Fixed files cross-reference Semantics
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import Joi from "joi";
|
||||
import { RGB_HEX_COLOR_REGEX } from ".";
|
||||
import { RGB_HEX_COLOR_REGEX } from "./regexps";
|
||||
|
||||
/**
|
||||
* For a better description of every single field,
|
||||
|
||||
@@ -20,11 +20,7 @@ import { Semantics } from "./Semantics";
|
||||
import { CertificatesSchema } from "./Certificates";
|
||||
|
||||
import * as Messages from "../messages";
|
||||
|
||||
export const RGB_HEX_COLOR_REGEX =
|
||||
/(#[a-fA-F0-9]{3,6}|rgb\(\s*(?:[01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\s*,\s*(?:[01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\s*,\s*(?:[01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\s*\))/;
|
||||
|
||||
const URL_REGEX = /https?:\/\/(?:[a-z0-9]+\.?)+(?::\d{2,})?(?:\/[\S]+)*/;
|
||||
import { RGB_HEX_COLOR_REGEX, URL_REGEX } from "./regexps";
|
||||
|
||||
export type PreferredStyleSchemes = ("posterEventTicket" | "eventTicket")[];
|
||||
|
||||
|
||||
3
src/schemas/regexps.ts
Normal file
3
src/schemas/regexps.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const RGB_HEX_COLOR_REGEX =
|
||||
/(?:\#[a-fA-F0-9]{3,6}|rgb\(\s*(?:[01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\s*,\s*(?:[01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\s*,\s*(?:[01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\s*\))/;
|
||||
export const URL_REGEX = /https?:\/\/(?:[a-z0-9]+\.?)+(?::\d{2,})?(?:\/[\S]+)*/;
|
||||
Reference in New Issue
Block a user