From b5ec68178067372c267831d64cf6e515435c9bef Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 19 Dec 2024 17:04:19 -0500 Subject: fix case testing --- main.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index be00744..83c3a81 100644 --- a/main.cpp +++ b/main.cpp @@ -67,12 +67,7 @@ bool parse_stream(auto &fth, std::istream& str, bool say_okay) while (str.good()) { std::getline(str, line); if (!line.empty()) { - for (auto& ch : line) { - if (ch >= 'a' && ch <= 'z') - ch = ch - 'a' + 'A'; - } - - if (line == "BYE") + if (sforth::isequal(line, "bye")) return true; try { -- cgit v1.2.3