aboutsummaryrefslogtreecommitdiff
path: root/src/utils/web.rs
blob: a8346483e39c8970851c77e9dbd0c0282357f2c5 (plain) (blame)
1
2
3
4
5
6
7
pub fn _is_double_crnl(window: &[u8]) -> bool {
	window.len() >= 4
		&& (window[0] == '\r' as u8)
		&& (window[1] == '\n' as u8)
		&& (window[2] == '\r' as u8)
		&& (window[3] == '\n' as u8)
}