MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / strip_trailing_newline

Function strip_trailing_newline

rust/src/shell.rs:60–65  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

58}
59
60pub fn strip_trailing_newline(input: &str) -> &str {
61 input
62 .strip_suffix(CRLF)
63 .or_else(|| input.strip_suffix(LF))
64 .unwrap_or(input)
65}
66
67pub fn split_lines(string: &str) -> Vec<&str> {
68 if string.contains(CRLF) {

Callers 1

run_shell_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected