lib/nilac/compile_case_statement.rb in nilac-0.0.4.3.9.7.1 vs lib/nilac/compile_case_statement.rb in nilac-0.0.4.3.9.8
- old
+ new
@@ -49,9 +49,13 @@
modified_file_contents = input_file_contents.clone
possible_case_statements = input_file_contents.reject {|element| !element.include?("case ")}
+ possible_case_statements = possible_case_statements.reject {|element| replace_strings(element).include?(".downcase")}
+
+ possible_case_statements = possible_case_statements.reject {|element| replace_strings(element).include?(".upcase")}
+
case_statements = []
possible_case_statements.each do |statement|
starting_index = input_file_contents.index(statement)
\ No newline at end of file