fix: some js syntax

This commit is contained in:
Gabe Yuan
2024-02-02 15:44:44 +08:00
parent de5f61126d
commit 0973a0b60e
3 changed files with 9 additions and 9 deletions

View File

@@ -473,7 +473,7 @@ export class Translator {
// 专业术语
if (this._terms.length > 0) {
for (let term of this._terms) {
for (const term of this._terms) {
const re = new RegExp(term[0], "g");
q = q.replace(re, (t) => {
const text = `[${keeps.length}]`;