not sure what's going on here.
I have code that works fine in iOS:
const bolds = /\*\*([^\*]+)\*\*/g;
const italics = /[^\*]\*([^\*]+)\*/g;
const images = /\[\[\[(.*)\]\]\]/g;
const footnotes = /xx(\d*)/g;
const hyperlinks = /[^\[](https?:\/\/[^\s]+)/g;
const matchRegexes = {
hyperlinks: [...text.matchAll(hyperlinks)],
bolds: [...text.matchAll(bolds)],
italics: [...text.matchAll(italics)],
images: [...text.matchAll(images)],
footnotes: [...text.matchAll(footnotes)],
};
I'm using it to identify a custom markup / certain text patterns.
When I attempt to load the View that uses this code I get this error pointed at the first text.matchAll
undefined is not a function
What is going on here? It looks like matchAll is relatively new to the spec, but it's working for ios, why would it not be included with android?