We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1862ce commit 1f646f4Copy full SHA for 1f646f4
src/file_parser/codefile.rs
@@ -95,7 +95,7 @@ impl CodeFile {
95
return Err("No leetcode problem found in the code file. Please add the problem link in the code file using comments.");
96
}
97
let code = code[start..end].trim();
98
- let code = code.trim_end_matches(language.inline_comment_start());
+ let code = code.trim_end_matches(language.inline_comment_start()).trim_end();
99
parsed_code = code.to_string();
100
101
Ok((question_title, parsed_code))
0 commit comments