@dicebear/core 10.7.0-rc.1 → 10.7.0

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.
@@ -37,12 +37,12 @@ const validate = (function () {
37
37
  instanceLocation: `${dataBase}${instanceLocation.slice(1)}`,
38
38
  });
39
39
  const pointerPart = (s) => (/~\//.test(s) ? `${s}`.replace(/~/g, '~0').replace(/\//g, '~1') : s);
40
- const pattern1 = new RegExp("[uU][rR][lL]\\s*\\(\\s*[^#)\\s]", "u");
41
- const pattern2 = new RegExp("[eE][xX][pP][rR][eE][sS][sS][iI][oO][nN]\\s*\\(", "u");
42
- const pattern3 = new RegExp("[bB][eE][hH][aA][vV][iI][oO][rR]\\s*:", "u");
40
+ const pattern1 = new RegExp("[uU][rR][lL][ \\t\\n\\f\\r]*\\([ \\t\\n\\f\\r]*[^#) \\t\\n\\f\\r]", "u");
41
+ const pattern2 = new RegExp("[eE][xX][pP][rR][eE][sS][sS][iI][oO][nN][ \\t\\n\\f\\r]*\\(", "u");
42
+ const pattern3 = new RegExp("[bB][eE][hH][aA][vV][iI][oO][rR][ \\t\\n\\f\\r]*:", "u");
43
43
  const pattern4 = new RegExp("-[mM][oO][zZ]-[bB][iI][nN][dD][iI][nN][gG]", "u");
44
- const pattern5 = new RegExp("[jJ][aA][vV][aA][sS][cC][rR][iI][pP][tT]\\s*:", "u");
45
- const pattern6 = new RegExp("[vV][bB][sS][cC][rR][iI][pP][tT]\\s*:", "u");
44
+ const pattern5 = new RegExp("[jJ][aA][vV][aA][sS][cC][rR][iI][pP][tT][ \\t\\n\\f\\r]*:", "u");
45
+ const pattern6 = new RegExp("[vV][bB][sS][cC][rR][iI][pP][tT][ \\t\\n\\f\\r]*:", "u");
46
46
  const pattern7 = new RegExp("\\\\", "u");
47
47
  const ref4 = function validate(data) {
48
48
  validate.errors = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/core",
3
- "version": "10.7.0-rc.1",
3
+ "version": "10.7.0",
4
4
  "description": "Unique avatars from dozens of styles — deterministic, customizable, vector-based.",
5
5
  "keywords": [
6
6
  "avatar",
@@ -39,7 +39,7 @@
39
39
  "test": "node --test"
40
40
  },
41
41
  "devDependencies": {
42
- "@dicebear/schema": "^1.4.0",
42
+ "@dicebear/schema": "^1.5.1",
43
43
  "@exodus/schemasafe": "^1.3.0",
44
44
  "@tsconfig/recommended": "^1.0.13",
45
45
  "del-cli": "^7.0.0",