v2 up fix mav0a201
This commit is contained in:
@@ -480,10 +480,10 @@ class AutomaticDispose {
|
||||
var JailDistance = 0;
|
||||
var JailTax = 0;
|
||||
let m;
|
||||
while ((m = JailRegEx.exec(JailText)) !== null) {
|
||||
while ((m = that.JailRegEx.exec(JailText)) !== null) {
|
||||
// This is necessary to avoid infinite loops with zero-width matches
|
||||
if (m.index === JailRegEx.lastIndex) {
|
||||
JailRegEx.lastIndex++;
|
||||
if (m.index === that.JailRegEx.lastIndex) {
|
||||
that.JailRegEx.lastIndex++;
|
||||
}
|
||||
|
||||
// The result can be accessed through the `m`-variable.
|
||||
@@ -545,10 +545,10 @@ class AutomaticDispose {
|
||||
var JailDistance = 0;
|
||||
var JailTax = 0;
|
||||
let m;
|
||||
while ((m = JailRegEx.exec(JailText)) !== null) {
|
||||
while ((m = that.JailRegEx.exec(JailText)) !== null) {
|
||||
// This is necessary to avoid infinite loops with zero-width matches
|
||||
if (m.index === JailRegEx.lastIndex) {
|
||||
JailRegEx.lastIndex++;
|
||||
if (m.index === that.JailRegEx.lastIndex) {
|
||||
that.JailRegEx.lastIndex++;
|
||||
}
|
||||
|
||||
// The result can be accessed through the `m`-variable.
|
||||
|
||||
Reference in New Issue
Block a user