edf2csv 0.9.22 → 0.9.24

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.
@@ -1760,6 +1760,23 @@ converted = new Set()) {
1760
1760
  `in ${channelsFile}'s column cells.`),
1761
1761
  };
1762
1762
  }
1763
+ /*
1764
+ And the channel with no label at all, whose sentence ends in a column too.
1765
+
1766
+ `EMPTY_LABEL` says where the name this tool invents for it lands, and both of its forms
1767
+ land it in a signal table: "It will appear as `signal_1`", and, where some other channel
1768
+ really carries that label, "so both columns are suffixed with their position instead".
1769
+ A run writing no signal table puts the name in one place, which is the cell the two
1770
+ rewrites above already name.
1771
+ */
1772
+ if (diagnostic.code === 'EMPTY_LABEL') {
1773
+ return {
1774
+ ...diagnostic,
1775
+ message: diagnostic.message
1776
+ .replace(/ It will appear as ("[^"]*")\.$/u, ` It is named $1 in ${channelsFile}'s column cell.`)
1777
+ .replace('so both columns are suffixed with their position instead.', `so both are suffixed with their position in ${channelsFile}'s column cells instead.`),
1778
+ };
1779
+ }
1763
1780
  if (diagnostic.code === 'DEGENERATE_DIGITAL_RANGE') {
1764
1781
  return {
1765
1782
  ...diagnostic,