pimath 0.0.99 → 0.0.101

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/pi.js CHANGED
@@ -2628,7 +2628,7 @@ class Polynom {
2628
2628
  this.isDeveloped = (polynomString) => {
2629
2629
  let P;
2630
2630
  // There is at least one parenthese - it is not developed.
2631
- if (polynomString.match(/\(/g).length + polynomString.match(/\)/g).length) {
2631
+ if (polynomString.split('(').length + polynomString.split(')').length > 0) {
2632
2632
  return false;
2633
2633
  }
2634
2634
  // Try to build the polynom