In pqgrid.dev.js from 3212:
/*BUG*/
//fmtPart = fmtPart.replace(/(?<![ap])m{1,5}/gi, replacer("M"));
/*SUGGESTED FIX*/
fmtPart = fmtPart.replace(/(?:^|[^ap])m{1,5}/gi, function (match, offset, string) {
// Ensure the match doesn't follow 'a' or 'p'
if (offset === 0 || !/[ap]/i.test(string[offset - 1])) {
return replacer("M")(match);
}
return match;
});
Safari 16 does not accept the regex "/(?<![ap])m{1,5}/gi" because it does not support "<"
Please confirm the suggested fix is OK, if not, please tell me what it should be replaced with.