@teselagen/ove 0.8.31 → 0.8.32

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/index.cjs.js CHANGED
@@ -85588,8 +85588,9 @@ function genbankToJson(string2, options = {}) {
85588
85588
  if (line === null) {
85589
85589
  return true;
85590
85590
  }
85591
- const key = getLineKey(line);
85592
- const val2 = getLineVal(line);
85591
+ const shouldUseSpaceAsDelimiter = !line.trim().startsWith("/");
85592
+ const key = getLineKey(line, shouldUseSpaceAsDelimiter);
85593
+ const val2 = getLineVal(line, shouldUseSpaceAsDelimiter);
85593
85594
  const isKeyRunon = isKeywordRunon(line);
85594
85595
  const isSubKey = isSubKeyword(line);
85595
85596
  const isKey2 = isKeyword(line);
@@ -85960,10 +85961,10 @@ function genbankToJson(string2, options = {}) {
85960
85961
  currentFeatureNote = currentNotes[key];
85961
85962
  }
85962
85963
  __name(parseFeatureNote, "parseFeatureNote");
85963
- function getLineKey(line) {
85964
+ function getLineKey(line, shouldUseSpaceAsDelimiter) {
85964
85965
  let arr;
85965
85966
  line = line.replace(/^[\s]*/, "");
85966
- if (line.indexOf("=") < 0) {
85967
+ if (line.indexOf("=") < 0 || shouldUseSpaceAsDelimiter) {
85967
85968
  arr = line.split(/[\s]+/);
85968
85969
  } else {
85969
85970
  arr = line.split(/=/);
@@ -85971,9 +85972,9 @@ function genbankToJson(string2, options = {}) {
85971
85972
  return arr[0];
85972
85973
  }
85973
85974
  __name(getLineKey, "getLineKey");
85974
- function getLineVal(line) {
85975
+ function getLineVal(line, shouldUseSpaceAsDelimiter) {
85975
85976
  let arr;
85976
- if (line.indexOf("=") < 0) {
85977
+ if (line.indexOf("=") < 0 || shouldUseSpaceAsDelimiter) {
85977
85978
  line = line.replace(/^[\s]*[\S]+[\s]+|[\s]+$/, "");
85978
85979
  line = line.trim();
85979
85980
  return line;
@@ -117142,7 +117143,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117142
117143
  input.click();
117143
117144
  }
117144
117145
  __name(showFileDialog, "showFileDialog");
117145
- const version = "0.8.31";
117146
+ const version = "0.8.32";
117146
117147
  const packageJson = {
117147
117148
  version
117148
117149
  };
package/index.es.js CHANGED
@@ -85570,8 +85570,9 @@ function genbankToJson(string2, options = {}) {
85570
85570
  if (line === null) {
85571
85571
  return true;
85572
85572
  }
85573
- const key = getLineKey(line);
85574
- const val2 = getLineVal(line);
85573
+ const shouldUseSpaceAsDelimiter = !line.trim().startsWith("/");
85574
+ const key = getLineKey(line, shouldUseSpaceAsDelimiter);
85575
+ const val2 = getLineVal(line, shouldUseSpaceAsDelimiter);
85575
85576
  const isKeyRunon = isKeywordRunon(line);
85576
85577
  const isSubKey = isSubKeyword(line);
85577
85578
  const isKey2 = isKeyword(line);
@@ -85942,10 +85943,10 @@ function genbankToJson(string2, options = {}) {
85942
85943
  currentFeatureNote = currentNotes[key];
85943
85944
  }
85944
85945
  __name(parseFeatureNote, "parseFeatureNote");
85945
- function getLineKey(line) {
85946
+ function getLineKey(line, shouldUseSpaceAsDelimiter) {
85946
85947
  let arr;
85947
85948
  line = line.replace(/^[\s]*/, "");
85948
- if (line.indexOf("=") < 0) {
85949
+ if (line.indexOf("=") < 0 || shouldUseSpaceAsDelimiter) {
85949
85950
  arr = line.split(/[\s]+/);
85950
85951
  } else {
85951
85952
  arr = line.split(/=/);
@@ -85953,9 +85954,9 @@ function genbankToJson(string2, options = {}) {
85953
85954
  return arr[0];
85954
85955
  }
85955
85956
  __name(getLineKey, "getLineKey");
85956
- function getLineVal(line) {
85957
+ function getLineVal(line, shouldUseSpaceAsDelimiter) {
85957
85958
  let arr;
85958
- if (line.indexOf("=") < 0) {
85959
+ if (line.indexOf("=") < 0 || shouldUseSpaceAsDelimiter) {
85959
85960
  line = line.replace(/^[\s]*[\S]+[\s]+|[\s]+$/, "");
85960
85961
  line = line.trim();
85961
85962
  return line;
@@ -117124,7 +117125,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117124
117125
  input.click();
117125
117126
  }
117126
117127
  __name(showFileDialog, "showFileDialog");
117127
- const version = "0.8.31";
117128
+ const version = "0.8.32";
117128
117129
  const packageJson = {
117129
117130
  version
117130
117131
  };
package/index.umd.js CHANGED
@@ -114491,8 +114491,9 @@ ${latestSubscriptionCallbackError.current.stack}
114491
114491
  if (line === null) {
114492
114492
  return true;
114493
114493
  }
114494
- const key = getLineKey(line);
114495
- const val2 = getLineVal(line);
114494
+ const shouldUseSpaceAsDelimiter = !line.trim().startsWith("/");
114495
+ const key = getLineKey(line, shouldUseSpaceAsDelimiter);
114496
+ const val2 = getLineVal(line, shouldUseSpaceAsDelimiter);
114496
114497
  const isKeyRunon = isKeywordRunon(line);
114497
114498
  const isSubKey = isSubKeyword(line);
114498
114499
  const isKey2 = isKeyword(line);
@@ -114863,10 +114864,10 @@ ${latestSubscriptionCallbackError.current.stack}
114863
114864
  currentFeatureNote = currentNotes[key];
114864
114865
  }
114865
114866
  __name(parseFeatureNote, "parseFeatureNote");
114866
- function getLineKey(line) {
114867
+ function getLineKey(line, shouldUseSpaceAsDelimiter) {
114867
114868
  let arr;
114868
114869
  line = line.replace(/^[\s]*/, "");
114869
- if (line.indexOf("=") < 0) {
114870
+ if (line.indexOf("=") < 0 || shouldUseSpaceAsDelimiter) {
114870
114871
  arr = line.split(/[\s]+/);
114871
114872
  } else {
114872
114873
  arr = line.split(/=/);
@@ -114874,9 +114875,9 @@ ${latestSubscriptionCallbackError.current.stack}
114874
114875
  return arr[0];
114875
114876
  }
114876
114877
  __name(getLineKey, "getLineKey");
114877
- function getLineVal(line) {
114878
+ function getLineVal(line, shouldUseSpaceAsDelimiter) {
114878
114879
  let arr;
114879
- if (line.indexOf("=") < 0) {
114880
+ if (line.indexOf("=") < 0 || shouldUseSpaceAsDelimiter) {
114880
114881
  line = line.replace(/^[\s]*[\S]+[\s]+|[\s]+$/, "");
114881
114882
  line = line.trim();
114882
114883
  return line;
@@ -145240,7 +145241,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
145240
145241
  input.click();
145241
145242
  }
145242
145243
  __name(showFileDialog, "showFileDialog");
145243
- const version = "0.8.31";
145244
+ const version = "0.8.32";
145244
145245
  const packageJson = {
145245
145246
  version
145246
145247
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.8.31",
3
+ "version": "0.8.32",
4
4
  "main": "./src/index.js",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/TeselaGen/tg-oss",
@@ -15,7 +15,7 @@
15
15
  "@blueprintjs/core": "3.54.0",
16
16
  "@hello-pangea/dnd": "16.2.0",
17
17
  "@risingstack/react-easy-state": "^6.3.0",
18
- "@teselagen/bio-parsers": "0.4.33",
18
+ "@teselagen/bio-parsers": "0.4.34",
19
19
  "@teselagen/file-utils": "0.3.23",
20
20
  "@teselagen/range-utils": "0.3.20",
21
21
  "@teselagen/react-list": "0.8.18",