@rasifix/orienteering-utils 2.0.76 → 2.0.77

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.
@@ -42,6 +42,7 @@ var PicoeventsFormat = /** @class */ (function () {
42
42
  var startNumIdx = header.indexOf("[STARTNUM]");
43
43
  var runOrLegIdx = header.indexOf("[RUNORLEG]");
44
44
  var baseClassIdx = header.indexOf("[BASECLASS]");
45
+ var fullClassIdx = header.indexOf("[FULLCLASS]");
45
46
  var teamIdx = header.indexOf("[GROUPNAME]");
46
47
  lines.forEach(function (line, idx) {
47
48
  var tokens = parseCSVLine(line);
@@ -51,7 +52,7 @@ var PicoeventsFormat = /** @class */ (function () {
51
52
  if (idx === 0) {
52
53
  result.relay = tokens[0].endsWith("=R");
53
54
  }
54
- var name = tokens[baseClassIdx];
55
+ var name = tokens[baseClassIdx] || tokens[fullClassIdx];
55
56
  if (name.indexOf("TW") !== -1 || name.indexOf("TM") !== -1) {
56
57
  return;
57
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasifix/orienteering-utils",
3
- "version": "2.0.76",
3
+ "version": "2.0.77",
4
4
  "description": "utility functions for orienteering result analyzis",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",