Skip to content

Commit

Permalink
Merge pull request #28 from observerly/fix/header/parseFITSHeaderRow
Browse files Browse the repository at this point in the history
fix: amend parseFITSHeaderRow to correctly parse booleans in @observerly/fits
  • Loading branch information
michealroberts authored Jan 5, 2025
2 parents 92c6c55 + daf06e4 commit 530f837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/header/parseFITSHeaderRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const parseFITSHeaderRow = (line: string): FITSHeader => {
}

if (v.length === 1 && ['T', 'F'].includes(v)) {
value = 'T' ? true : false
value = v === 'T' ? true : false
}

const comment = c ? c.trim() : ''
Expand All @@ -68,4 +68,4 @@ export const parseFITSHeaderRow = (line: string): FITSHeader => {
}
}

/*****************************************************************************************************************/
/*****************************************************************************************************************/

0 comments on commit 530f837

Please sign in to comment.