Commit 7a6ea355 authored by Scott Sun's avatar Scott Sun

s

parent a757130e
...@@ -2286,15 +2286,16 @@ function analysisChkAttr(par) { ...@@ -2286,15 +2286,16 @@ function analysisChkAttr(par) {
step: par.step, step: par.step,
checklist: oChecklistName, checklist: oChecklistName,
nact: nact, nact: nact,
attr: v + "_min_" + type attr: v + "_min_" + type,
units:"mm"
}) })
if (a === "N/A" && /^\d+\.?\d*$/.test(tmp)) { if (a === "N/A" && /^\d+\.?\d*$/.test(tmp)) {
tmp = Number(tmp) tmp = Number(tmp)
a = tmp.toFixed(2) a = tmp/25.4
} }
if (/^\d+\.?\d*$/.test(a) && /^\d+\.?\d*$/.test(tmp) && Number(tmp) < Number(a)) { if (/^\d+\.?\d*$/.test(a) && /^\d+\.?\d*$/.test(tmp) && Number(tmp) < Number(a)) {
tmp = Number(tmp) tmp = Number(tmp)
a = tmp.toFixed(2) a = tmp/25.4
} }
return a return a
}, "N/A") }, "N/A")
......
...@@ -459,7 +459,7 @@ ...@@ -459,7 +459,7 @@
{"orig_name" : ["top_(?:solder)mask","^smt(?:\\.gbr)?$","^sm_top$"], "tl_name" : "sm_top" }, {"orig_name" : ["top_(?:solder)mask","^smt(?:\\.gbr)?$","^sm_top$"], "tl_name" : "sm_top" },
{"orig_name" : ["bot(?:tom)?_(?:solder)mask","^smb(?:\\.gbr)?$","^sm_botm$"], "tl_name" : "sm_botm" }, {"orig_name" : ["bot(?:tom)?_(?:solder)mask","^smb(?:\\.gbr)?$","^sm_botm$"], "tl_name" : "sm_botm" },
{"orig_name" : ["^top$","^top\\.gbr$","^top\\.art$"], "tl_name" : "top" }, {"orig_name" : ["^top$","^top\\.gbr$","^top\\.art$"], "tl_name" : "top" },
{"orig_name" : "^drill(?:\\.drl)$", "tl_name" : "drill" }, {"orig_name" : ["^drill(?:\\.drl)?$"], "tl_name" : "drill" },
{"orig_name" : ["^board_outline$","outline\\.gbr|outline\\.art","^outline$"], "tl_name" : "outline" }, {"orig_name" : ["^board_outline$","outline\\.gbr|outline\\.art","^outline$"], "tl_name" : "outline" },
{"orig_name" : ["^rout$","\\.rou$"], "tl_name" : "rout" }, {"orig_name" : ["^rout$","\\.rou$"], "tl_name" : "rout" },
{"orig_name" : ["^bottom$","^bottom\\.gbr$","^bottom\\.art$"], "tl_name" : "bottom" }, {"orig_name" : ["^bottom$","^bottom\\.gbr$","^bottom\\.art$"], "tl_name" : "bottom" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment