match() returns array with two matches when I expect one match
From String.prototype.match [MDN]: If the regular expression does not include the g flag, returns the same result as regexp.exec(string). Where the RegExp.prototype.exec documentation [MDN] says: The returned array has the matched text as the first item, and then one item for each capturing parenthesis that matched containing the text that was captured. So as you … Read more