mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
We leave in place a couple of sites where the `startsWith` is entangled with other string manipulation. We'll handle those next.
7 lines
203 B
JavaScript
7 lines
203 B
JavaScript
/** 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);
|
|
}
|