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

Regex for matching HSLA colors.\hypertarget{md_sfcode_node_modules_hsla_regex_README_autotoc_md11661}{}\doxysection{Installation}\label{md_sfcode_node_modules_hsla_regex_README_autotoc_md11661}

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

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

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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_hsla_regex_README_autotoc_md11663}{}\doxysection{License}\label{md_sfcode_node_modules_hsla_regex_README_autotoc_md11663}
MIT\hypertarget{md_sfcode_node_modules_hsla_regex_README_autotoc_md11664}{}\doxysection{Contributing}\label{md_sfcode_node_modules_hsla_regex_README_autotoc_md11664}

\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}
