[][src]Function voca_rs::query::is_kebab_case

pub fn is_kebab_case(subject: &str) -> bool

Checks whether subject is kebab-cased.

Arguments

Example

use voca_rs::*;
query::is_kebab_case("");
// => true
query::is_kebab_case("bird-flight");
// => true
query::is_kebab_case("bird flight");
// => false
query::is_kebab_case("-BIRD-FLIGHT-");
// => false
use voca_rs::Voca;
"bird-flight"._is_kebab_case();
// => true