@zscreate/zhxy-app-component 1.0.269 → 1.0.270

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.
@@ -12,6 +12,7 @@ const utils = {
12
12
  const propRules = [].concat(rules[prop] || []);
13
13
  propRules.forEach((rule) => {
14
14
  if (rule.pattern) {
15
+ value = String(value)
15
16
  let pattern = rule.pattern
16
17
  if (isRegExp(pattern)) return
17
18
  const flag = String(pattern).slice(-2)[0] === '/' ? String(pattern).slice(-1)[0] : undefined
@@ -19,7 +20,7 @@ const utils = {
19
20
  if (typeof pattern === 'string' && String(pattern).startsWith('/') && (String(pattern).endsWith('/') || String(pattern).slice(-2)[0] === '/' )) {
20
21
  pattern = String(pattern).substring(1, pattern.length - (String(pattern).slice(-2)[0] === '/' ? 2 : 1))
21
22
  }
22
-
23
+ debugger
23
24
  console.log('isRegExp:', isRegExp(pattern))
24
25
  rule.pattern = new RegExp(pattern, flag)
25
26
  console.log("rule.pattern: ",pattern, rule.pattern, flag)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.269",
3
+ "version": "1.0.270",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",