Fix replacement string slicing

This commit is contained in:
2025-10-02 09:14:15 +02:00
parent d3deb4cb11
commit 02395fe592

View File

@@ -496,7 +496,7 @@ class BesService {
y1, y1,
y2, y2,
scale, scale,
replacement.substr(lengthDiff).trim() replacement.slice(0, lengthDiff).trim()
) )
} }
} else if (replacement.substr(0, context.length) === context) { } else if (replacement.substr(0, context.length) === context) {