@sheinx/hooks 3.8.7-beta.2 → 3.8.7-beta.4

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.
@@ -61,7 +61,7 @@ function getRule(rule, props) {
61
61
  return;
62
62
  }
63
63
  if (reg.global) reg.lastIndex = 0;
64
- if (typeof value === 'string' && reg.test(value)) {
64
+ if (reg.test(value)) {
65
65
  callback(true);
66
66
  } else {
67
67
  callback(new _error.FormError(po.message, po));
@@ -54,7 +54,7 @@ export default function getRule(rule, props) {
54
54
  return;
55
55
  }
56
56
  if (reg.global) reg.lastIndex = 0;
57
- if (typeof value === 'string' && reg.test(value)) {
57
+ if (reg.test(value)) {
58
58
  callback(true);
59
59
  } else {
60
60
  callback(new FormError(po.message, po));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/hooks",
3
- "version": "3.8.7-beta.2",
3
+ "version": "3.8.7-beta.4",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",