diff --git a/src/util/DataResolver.js b/src/util/DataResolver.js index d7d9eb7..1ea8aa6 100644 --- a/src/util/DataResolver.js +++ b/src/util/DataResolver.js @@ -34,7 +34,7 @@ class DataResolver extends null { * @returns {string} */ static resolveCode(data, regex) { - return data.matchAll(regex).next().value?.[1] ?? data; + return new RegExp(regex.source).exec(data)?.[1] ?? data; } /**