Skip to main content

names_secret_in_words

Function names_secret_in_words 

Source
pub fn names_secret_in_words(name: &str) -> bool
Expand description

Whether a word of name names a secret: its words split at anything but a letter or a digit, before an upper-case letter following a lower-case one or a digit (apiKey: api, key), and before the last of a run of upper-case letters followed by a lower-case one (HTTPPassword: http, password; AWSAccessKeyId: aws, access, key, id).