qesuite 1.0.70 → 1.0.71

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.
package/dist/index.js CHANGED
@@ -168,7 +168,7 @@ var Specification = class {
168
168
  full_tolerance;
169
169
  // methods
170
170
  ParseSpec(spec) {
171
- let string = spec.replace(/\,/g, ".").toUpperCase().replace(/MIN/g, ">").replace(/MAX/g, "<").replace(/\-\-/g, "\u2014");
171
+ let string = spec.replace(/\,/g, ".").toUpperCase().replace(/MIN/g, ">").replace(/MAX/g, "<").replace(/\-\-/g, "\u2014").replace("+-", "\xB1").replace("+/-", "\xB1");
172
172
  let nominal;
173
173
  let USL;
174
174
  let LSL;
package/dist/index.mjs CHANGED
@@ -42,7 +42,7 @@ var Specification = class {
42
42
  full_tolerance;
43
43
  // methods
44
44
  ParseSpec(spec) {
45
- let string = spec.replace(/\,/g, ".").toUpperCase().replace(/MIN/g, ">").replace(/MAX/g, "<").replace(/\-\-/g, "\u2014");
45
+ let string = spec.replace(/\,/g, ".").toUpperCase().replace(/MIN/g, ">").replace(/MAX/g, "<").replace(/\-\-/g, "\u2014").replace("+-", "\xB1").replace("+/-", "\xB1");
46
46
  let nominal;
47
47
  let USL;
48
48
  let LSL;
package/index.ts CHANGED
@@ -52,7 +52,7 @@ export class Specification{
52
52
  ParseSpec(spec: string) {
53
53
  // This function parses specs and returns an array of values, in this order:
54
54
  // Nominal, USL, LSL, Units, Tolerance(if UT and LT differ then {UT, LT})
55
- let string = spec.replace(/\,/g, ".").toUpperCase().replace(/MIN/g, ">").replace(/MAX/g, "<").replace(/\-\-/g,"—");
55
+ let string = spec.replace(/\,/g, ".").toUpperCase().replace(/MIN/g, ">").replace(/MAX/g, "<").replace(/\-\-/g,"—").replace("+-", "±").replace("+/-", "±");
56
56
  let nominal;
57
57
  let USL;
58
58
  let LSL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qesuite",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "Performs advanced statistical analysis of data. Specifically designed for engineering statistical analysis",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -0,0 +1 @@
1
+ - added a replacement of +- and +/- with ± on parse spec