RegExp capture angle [duplicate]

I have some RegExp from TinyColor for CSS unit and integers

// <http://www.w3.org/TR/css3-values/#integers>
const CSS_INTEGER = '[-\+]?\d+%?';

// <http://www.w3.org/TR/css3-values/#number-value>
const CSS_NUMBER = '[-\+]?\d*\.\d+%?';

I want to do something similar for angles:

// <https://www.w3.org/TR/css3-values/#angle-value>
const CSS_ANGLE = '[-\+]?\d*\.\d+(deg|rad|grad|turn)?';

const angleRegExp = new RegExp(CSS_ANGLE);

// test
console.log(angleRegExp.exec('hsl(120deg 100% 50%)'))

How can I make it work?