@datagrok/bio 2.11.6 → 2.11.7

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/detectors.js CHANGED
@@ -459,11 +459,8 @@ class BioPackageDetectors extends DG.Package {
459
459
  }
460
460
 
461
461
  getSplitterWithSeparator(separator, limit) {
462
- return function(seq) {
463
- const seq1 = !seq ? '' :
464
- (seq.startsWith('"') && seq.endsWith('"')) ? seq.slice(1, -1).replaceAll('""-""', '') :
465
- seq;
466
- return !seq1 ? [] : seq1.split(separator, limit);
462
+ return (seq) => {
463
+ return !seq ? [] : seq.replaceAll('\"-\"', '').replaceAll('\'-\'', '').split(separator, limit);
467
464
  };
468
465
  }
469
466