forked from public/foundryvtt-reve-de-dragon
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:
@ -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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user