fix(title): fix is_commented to look for only a single space (#14)
This commit is contained in:
parent
923343a076
commit
2dfe89f3dc
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue