\href{https://travis-ci.org/regexps/hsl-regex}{\texttt{ }}

Regex for matching HSL colors.\hypertarget{md_sfcode_node_modules_hsl_regex_README_autotoc_md11656}{}\doxysection{Installation}\label{md_sfcode_node_modules_hsl_regex_README_autotoc_md11656}

\begin{DoxyCode}{0}
\DoxyCodeLine{npm install -\/-\/save hsl-\/regex }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var hslRegex = require('hsl-\/regex');}
\DoxyCodeLine{}
\DoxyCodeLine{hslRegex(\{ exact: true \}).test('hsl(123, 45\%, 67\%)');  // => true}
\DoxyCodeLine{hslRegex(\{ exact: true \}).test('foo bar');  // => false}
\DoxyCodeLine{}
\DoxyCodeLine{hslRegex(\{ exact: true \}).exec('hsl(1, 1.111\%, 1.1111\%)');}
\DoxyCodeLine{// => [}
\DoxyCodeLine{//  'hsl(1, 1.111\%, 1.1111\%)',}
\DoxyCodeLine{//  '1',}
\DoxyCodeLine{//  '1.111\%',}
\DoxyCodeLine{//  '1.1111\%',}
\DoxyCodeLine{//  index: 0,}
\DoxyCodeLine{//  input: 'hsl(1, 1.111\%, 1.1111\%)'}
\DoxyCodeLine{// ]}
\DoxyCodeLine{}
\DoxyCodeLine{'hsl(123, 45\%, 67\%) cats and dogs'.match(hslRegex());}
\DoxyCodeLine{// = ['hsl(123, 45\%, 67\%)'] }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_hsl_regex_README_autotoc_md11658}{}\doxysection{License}\label{md_sfcode_node_modules_hsl_regex_README_autotoc_md11658}
MIT\hypertarget{md_sfcode_node_modules_hsl_regex_README_autotoc_md11659}{}\doxysection{Contributing}\label{md_sfcode_node_modules_hsl_regex_README_autotoc_md11659}

\begin{DoxyEnumerate}
\item Fork it
\item Create your feature branch ({\ttfamily git checkout -\/b my-\/new-\/feature})
\item Commit your changes (`git commit -\/am \textquotesingle{}Add some feature'{\ttfamily )}
\item {\ttfamily Push to the branch (}git push origin my-\/new-\/feature\`{})
\item Create new Pull Request
\end{DoxyEnumerate}

Crafted with $<$3 by John Otander (\mbox{[}@4lpine\mbox{]}(\href{https://twitter.com/4lpine}{\texttt{ https\+://twitter.\+com/4lpine}})).

\DoxyHorRuler{0}


\begin{quote}
This package was initially generated with \href{http://yeoman.io}{\texttt{ yeoman}} and the \href{https://github.com/johnotander/generator-p.git}{\texttt{ p generator}}. \end{quote}
