(input: &str)
| 918 | } |
| 919 | |
| 920 | fn has_windows_path_prefix(input: &str) -> bool { |
| 921 | let bytes = input.as_bytes(); |
| 922 | if bytes.len() >= 2 && bytes[0].is_ascii_alphabetic() && bytes[1] == b':' { |
| 923 | return true; |
| 924 | } |
| 925 | |
| 926 | input.starts_with("\\\\") || input.starts_with("//") |
| 927 | } |
| 928 | |
| 929 | pub(crate) fn validate_relative_pattern(pattern: &str, label: &str) -> Result<()> { |
| 930 | let pattern = pattern.trim(); |
no test coverage detected