Skip to main content

forked_title

Function forked_title 

Source
pub fn forked_title(title: &str) -> String
Expand description

Freeze getForkedTitle (session.ts): /^(.+) \(fork #(\d+)\)$/ → base (fork #(n+1)), otherwise title (fork #1). Ported with string ops (regex .+ needs ≥1 char before the suffix → idx > 0, greedy match → last occurrence → rfind).