Skip to content

Commit

Permalink
chore: revert file to match develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
shakkernerd committed Dec 28, 2024
1 parent 821b792 commit 7d78fcd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/parsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ export const booleanFooter = `Respond with only a YES or a NO.`;
* @returns {boolean|null} - Returns `true` for affirmative inputs, `false` for negative inputs, and `null` for unrecognized inputs or null/undefined.
*/
export const parseBooleanFromText = (text: string) => {
// "NULL", "UNDEFINED"
if (!text) return null; // Handle null or undefined input

const affirmative = ["YES", "Y", "TRUE", "T", "1", "ON", "ENABLE"];
const negative = ["NO", "N", "FALSE", "F", "0", "OFF", "DISABLE"];
const affirmative = ["YES", "Y", "TRUE", "T", "1", "ON", "ENABLE"];
const negative = ["NO", "N", "FALSE", "F", "0", "OFF", "DISABLE"];

const normalizedText = text.trim().toUpperCase();

Expand Down

0 comments on commit 7d78fcd

Please sign in to comment.