@bgord/tools 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mime-value.vo.js +2 -2
- package/package.json +1 -1
- package/src/mime-value.vo.ts +2 -2
package/dist/mime-value.vo.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export const MimeValueError = { Type: "mime.value.type", Invalid: "mime.value.invalid" };
|
|
3
|
-
// One to twenty four lowercase letters or
|
|
4
|
-
const MIME_VALUE_CHARS_WHITELIST = /^[a-z
|
|
3
|
+
// One to twenty four lowercase letters, asterisk or hyphen, forward slash, one to twenty four lowercase letters, asterisk or hyphen
|
|
4
|
+
const MIME_VALUE_CHARS_WHITELIST = /^[a-z*-]{1,24}\/[a-z*-]{1,24}$/;
|
|
5
5
|
export const MimeValue = z
|
|
6
6
|
.string(MimeValueError.Type)
|
|
7
7
|
.regex(MIME_VALUE_CHARS_WHITELIST, MimeValueError.Invalid)
|
package/package.json
CHANGED
package/src/mime-value.vo.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { z } from "zod/v4";
|
|
|
2
2
|
|
|
3
3
|
export const MimeValueError = { Type: "mime.value.type", Invalid: "mime.value.invalid" };
|
|
4
4
|
|
|
5
|
-
// One to twenty four lowercase letters or
|
|
6
|
-
const MIME_VALUE_CHARS_WHITELIST = /^[a-z
|
|
5
|
+
// One to twenty four lowercase letters, asterisk or hyphen, forward slash, one to twenty four lowercase letters, asterisk or hyphen
|
|
6
|
+
const MIME_VALUE_CHARS_WHITELIST = /^[a-z*-]{1,24}\/[a-z*-]{1,24}$/;
|
|
7
7
|
|
|
8
8
|
export const MimeValue = z
|
|
9
9
|
.string(MimeValueError.Type)
|