\begin{quote}
Trim a consecutively repeated substring\+: {\ttfamily foo-\/-\/bar-\/-\/-\/baz} → {\ttfamily foo-\/bar-\/baz} \end{quote}
\hypertarget{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30651}{}\doxysection{Install}\label{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30651}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save trim-\/repeated }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30652}{}\doxysection{Usage}\label{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30652}

\begin{DoxyCode}{0}
\DoxyCodeLine{var trimRepeated = require('trim-\/repeated');}
\DoxyCodeLine{}
\DoxyCodeLine{trimRepeated('foo-\/-\/bar-\/-\/-\/baz', '-\/');}
\DoxyCodeLine{//=> 'foo-\/bar-\/baz'}
\DoxyCodeLine{}
\DoxyCodeLine{trimRepeated('foo@\#@\#baz', '@\#');}
\DoxyCodeLine{//=> 'foo@\#baz' }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30653}{}\doxysubsection{trim\+Repeated(input, target)}\label{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30653}
\hypertarget{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30654}{}\doxysubsubsection{input}\label{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30654}
{\itshape Required} ~\newline
 Type\+: {\ttfamily string}\hypertarget{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30655}{}\doxysubsubsection{target}\label{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30655}
{\itshape Required} ~\newline
 Type\+: {\ttfamily string}

Substring to trim.\hypertarget{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30656}{}\doxysection{Related}\label{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30656}

\begin{DoxyItemize}
\item \href{https://github.com/sindresorhus/condense-whitespace}{\texttt{ {\ttfamily condense-\/whitespace}}} -\/ Remove leading, trailing and repeated whitespace from a string
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30657}{}\doxysection{License}\label{md_sfcode_node_modules_trim_repeated_readme_autotoc_md30657}
MIT © \href{http://sindresorhus.com}{\texttt{ Sindre Sorhus}} 