Skip to content

Commit 1f646f4

Browse files
committed
removes whitespace as well from end (#7)
1 parent f1862ce commit 1f646f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/file_parser/codefile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl CodeFile {
9595
return Err("No leetcode problem found in the code file. Please add the problem link in the code file using comments.");
9696
}
9797
let code = code[start..end].trim();
98-
let code = code.trim_end_matches(language.inline_comment_start());
98+
let code = code.trim_end_matches(language.inline_comment_start()).trim_end();
9999
parsed_code = code.to_string();
100100

101101
Ok((question_title, parsed_code))

0 commit comments

Comments
 (0)