update line end regex