diff options
Diffstat (limited to 'src/parse.rs')
-rw-r--r-- | src/parse.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parse.rs b/src/parse.rs index 17b5bfa..868da96 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -1,3 +1,4 @@ +use backslash::escape_ascii; use regex::Regex; use crate::choice::{Choice, ChoiceKind}; @@ -60,6 +61,10 @@ pub fn choice(src: &str) -> Result<Choice, ParseError> { return Ok(Choice::new(start, end, kind)); } +pub fn output_field_separator(src: &str) -> String { + escape_ascii(src).unwrap() +} + #[cfg(test)] mod tests { use crate::parse; |