@logto/core-kit 2.5.1 → 2.5.2

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.
Files changed (2) hide show
  1. package/lib/regex.js +1 -1
  2. package/package.json +4 -4
package/lib/regex.js CHANGED
@@ -3,7 +3,7 @@ export const phoneRegEx = /^\d+$/;
3
3
  export const phoneInputRegEx = /^\+?[\d-( )]+$/;
4
4
  export const usernameRegEx = /^[A-Z_a-z]\w*$/;
5
5
  export const webRedirectUriProtocolRegEx = /^https?:$/;
6
- export const mobileUriSchemeProtocolRegEx = /^[a-z][\d+_a-z-]*(\.[\d+_a-z-]+)+:$/;
6
+ export const mobileUriSchemeProtocolRegEx = /^(?!http(s)?:)[a-z][\d+_a-z-]*(\.[\d+_a-z-]+)*:$/;
7
7
  export const hexColorRegEx = /^#[\da-f]{3}([\da-f]{3})?$/i;
8
8
  export const dateRegex = /^\d{4}(-\d{2}){2}/;
9
9
  export const noSpaceRegEx = /^\S+$/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/core-kit",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "author": "Silverhand Inc. <contact@silverhand.io>",
5
5
  "homepage": "https://github.com/logto-io/toolkit#readme",
6
6
  "repository": {
@@ -46,17 +46,17 @@
46
46
  "@silverhand/eslint-config-react": "6.0.2",
47
47
  "@silverhand/ts-config": "6.0.0",
48
48
  "@silverhand/ts-config-react": "6.0.0",
49
- "@types/color": "^3.0.3",
49
+ "@types/color": "^4.0.0",
50
50
  "@types/node": "^20.9.5",
51
51
  "@types/react": "^18.3.3",
52
- "@vitest/coverage-v8": "^2.0.0",
52
+ "@vitest/coverage-v8": "^2.1.8",
53
53
  "eslint": "^8.56.0",
54
54
  "lint-staged": "^15.0.0",
55
55
  "postcss": "^8.4.31",
56
56
  "prettier": "^3.0.0",
57
57
  "stylelint": "^15.0.0",
58
58
  "typescript": "^5.5.3",
59
- "vitest": "^2.0.0"
59
+ "vitest": "^2.1.8"
60
60
  },
61
61
  "eslintConfig": {
62
62
  "extends": "@silverhand"