@smartnet360/svelte-components 0.0.23 → 0.0.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.
@@ -42,8 +42,8 @@ export async function parseMSIFile(file) {
42
42
  filenameMetadata.polarization = filenameParts[4].replace('M', '-');
43
43
  }
44
44
  // Extract tilt
45
- if (filenameParts.length > 5 && filenameParts[5].endsWith('T')) {
46
- filenameMetadata.tilt_from_filename = filenameParts[5].replace('T', '');
45
+ if (filenameParts.length > 5 && (filenameParts[5].endsWith('T') || filenameParts[5].endsWith('t'))) {
46
+ filenameMetadata.tilt_from_filename = filenameParts[5].replace(/[Tt]$/, '');
47
47
  }
48
48
  }
49
49
  let currentSection = null;
@@ -92,24 +92,7 @@ export async function parseMSIFile(file) {
92
92
  }
93
93
  }
94
94
  else if (trimmedLine.startsWith('COMMENT ')) {
95
- const commentText = trimmedLine.substring(8).trim();
96
- result.comment = commentText;
97
- // Extract tilt from comment if not already set from filename
98
- if (!filenameMetadata.tilt_from_filename && !result.tilt) {
99
- // Look for patterns like "Lever position 2 deg" or "Lever position 2deg"
100
- const leverMatch = commentText.match(/Lever position\s+(\d+)\s*deg/i);
101
- if (leverMatch) {
102
- result.tilt = leverMatch[1];
103
- }
104
- // Alternative patterns: "tilt: 2 deg", "2 deg tilt", "mechanical tilt 2", etc.
105
- // if (!result.tilt) {
106
- // const tiltMatch = commentText.match(/(?:tilt|mechanical|electrical)[\s:]+(\d+)(?:\s*deg)?/i) ||
107
- // commentText.match(/(\d+)\s*deg(?:ree)?s?\s+(?:tilt|mechanical|electrical)/i);
108
- // if (tiltMatch) {
109
- // result.tilt = tiltMatch[1];
110
- // }
111
- // }
112
- }
95
+ result.comment = trimmedLine.substring(8).trim();
113
96
  }
114
97
  else if (trimmedLine.startsWith('HORIZONTAL ')) {
115
98
  currentSection = 'horizontal';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartnet360/svelte-components",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",