I expect "I like to listen to Björk".matchAll(/w+/gu)
to get me ["I", "like", "to", "listen", "to", "Björk"]
, but it gets me ["I", "like", "to", "listen", "to", "Bj", "rk"]
. Using the ‘v’ flag, instead, is no different (and not supported in Node, it seems). Is this broken or am I doing it wrong? How do I make it work?