Skip to content

Commit

Permalink
🚨 修复 eslint 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Oct 10, 2023
1 parent b04f49e commit 1cd1c1f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/web/utils/tools.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
/**
* @file web utils tools.ts
* @description 应用用到的工具函数
* @author BTMuli<[email protected]>
* @since Alpha v0.2.0
* @since Beta v0.3.3
*/

// TauriGenshin
import TGConstant from "../constant/TGConstant";

/**
* @description 转义正则表达式
* @since Alpha v0.1.2
* @since Beta v0.3.3
* @param {string} data 内容
* @returns {string} 转义后的内容
*/
Expand All @@ -21,7 +19,8 @@ export function decodeRegExp(data: string): string {
res = res.replace(/&gt;/g, ">");
res = res.replace(/&nbsp;/g, " ");
res = res.replace(/&#39;/g, "'");
res = res.replace(/&quot;/g, '"');
// eslint-disable-next-line @typescript-eslint/quotes
res = res.replace(/&quot;/g, `"`);
res = res.replace(/&apos;/g, "'");
res = res.replace(/&amp;/g, "&");
return res;
Expand Down

0 comments on commit 1cd1c1f

Please sign in to comment.