huskies: merge 927
This commit is contained in:
@@ -49,6 +49,7 @@ pub fn name_from_story_id(story_id: &str) -> String {
|
||||
///
|
||||
/// Returns `Some("664")` for `"664_story_my_feature"`, and `None` for IDs
|
||||
/// that are already numeric-only (`"664"`) or have no valid numeric prefix.
|
||||
#[allow(clippy::string_slice)] // idx comes from find('_') → always a char boundary
|
||||
pub(super) fn numeric_id_from_slug(story_id: &str) -> Option<String> {
|
||||
// Already numeric-only — no migration needed.
|
||||
if story_id.chars().all(|c: char| c.is_ascii_digit()) {
|
||||
|
||||
Reference in New Issue
Block a user