zulip/static/shared/js/resolved_topic.js

7 lines
203 B
JavaScript
Raw Normal View History

/** The canonical form of the resolved-topic prefix. */
export const RESOLVED_TOPIC_PREFIX = "✔ ";
export function is_resolved(topic_name) {
return topic_name.startsWith(RESOLVED_TOPIC_PREFIX);
}