Skip to main content

substitute_odd_punctuation

Function substitute_odd_punctuation 

Source
pub fn substitute_odd_punctuation(input: String) -> Result<String, Error>
Expand description

product lines can contain difficult to parse punctuation such as biochemical symbols like unclosed single quotes, superscripts, single and double brackets etc. here we substitute these for an underscore