[][src]Function bear_lib_terminal::terminal::config::escape_config_string

pub fn escape_config_string(cfg: &String) -> String

Escapes 's and wraps the strings with 's, as per this.

Examples

assert_eq!(escape_config_string(&"".to_string()), "''");
assert_eq!(escape_config_string(&"'".to_string()), "''''");
assert_eq!(escape_config_string(&"asdf'asdf".to_string()), "'asdf''asdf'");