Skip to main content

is_ordinary_word

Function is_ordinary_word 

pub fn is_ordinary_word(needle: &str) -> bool
Expand description

Whether needle is an ordinary word: lowercase ASCII letters only, so that it can stand as an identifier in code (postgres, password). Only such a value takes is_value_position; a token with a digit, a capital, _, - or a Base64 form cannot be an identifier, so it is replaced wherever it stands.