% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/evolution.R
\name{.normalize_number}
\alias{.normalize_number}
\title{Normalise a recipient number for the API}
\usage{
.normalize_number(x)
}
\arguments{
\item{x}{A single character string (phone number or JID).}
}
\value{
A normalised character scalar.
}
\description{
Strips formatting characters (spaces, dashes, parentheses and
the leading \code{+}) from a plain phone number so the value sent to the API is
digits-only. Strings that already look like a JID (containing \code{@}, e.g. a
group id \code{...@g.us}) are returned unchanged.
}
\keyword{internal}
