Skip to main content

code_from

Function code_from 

Source
fn code_from(token: &Token) -> Option<String>
Expand description

Whether a token alone is a code: 4 to 8 digits (not a year, a price or a phone number), a prefixed code (“G-482913”), or two groups of three or four digits joined by a hyphen (“123-456”), kept as digits.