fix(title): fix is_commented to look for only a single space (#14)

This commit is contained in:
Alex Roper 2020-05-05 20:07:32 -07:00 committed by GitHub
parent 923343a076
commit 2dfe89f3dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ impl Title<'_> {
/// Returns `true` if this headline is commented
pub fn is_commented(&self) -> bool {
self.raw.starts_with("COMMENT ")
self.raw.starts_with("COMMENT ") || self.raw == "COMMENT"
}
pub fn into_owned(self) -> Title<'static> {