Ajouter de "jet de dés" dans les descriptions,

On peut maintenant ajouter des liens dans les descriptions
(acteurs, items) et autres champs similaires.
This commit is contained in:
2025-01-11 00:44:59 +01:00
parent 785bd4b9ce
commit b87f406093
15 changed files with 169 additions and 68 deletions

View File

@ -2002,7 +2002,7 @@ XRegExp.exec = function (str, regex, pos, sticky) {
*/
XRegExp.forEach = function (str, regex, callback) {
XRegExp.forEach = async function (str, regex, callback) {
var pos = 0;
var i = -1;
var match;
@ -2014,7 +2014,7 @@ XRegExp.forEach = function (str, regex, callback) {
// at least. Actually, because of the way `XRegExp.exec` caches globalized versions of
// regexes, mutating the regex will not have any effect on the iteration or matched strings,
// which is a nice side effect that brings extra safety.
callback(match, ++i, str, regex);
await callback(match, ++i, str, regex);
pos = match.index + (match[0].length || 1);
}
};