Browse Source

正则修改

laiguoran 4 years ago
parent
commit
53bb2b04fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/public/js/shenpi.js

+ 1 - 1
app/public/js/shenpi.js

@@ -924,7 +924,7 @@ $(document).ready(function () {
 
 function setRightData(datas, coolist) {
     const newdatas = [];
-    const reg = /(^GD([a-zA-Z0-9\-]+))|(\d+)/;
+    const reg = /(^GD([a-zA-Z0-9\-]+))|(^([0-9\-]+)$)/;
     for (const l of datas) {
         if (reg.test(l.code) && l.level <= 4) {
             if(l.level === 4 && l.is_leaf === false) {