From 5d49778cbc3420f898cf279eb06991ade4ce1a97 Mon Sep 17 00:00:00 2001 From: na2na <49822810+na2na-p@users.noreply.github.com> Date: Tue, 5 Apr 2022 17:05:01 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E7=94=A8?= =?UTF-8?q?=E5=88=86=E5=B2=90=E3=81=AE=E9=99=A4=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/earthquake/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/earthquake/index.ts b/src/modules/earthquake/index.ts index 3237657..f21e17b 100644 --- a/src/modules/earthquake/index.ts +++ b/src/modules/earthquake/index.ts @@ -80,7 +80,7 @@ export default class extends Module { const rawDataString = Buffer.concat(buffers).toString(); // rawDataString について、Unicodeエスケープシーケンスが含まれていたら通常の文字列に変換する // JSONでなければreturn falseする - if (rawDataString.match(/\\u[0-9a-f]{4}/) || true) { + if (rawDataString.match(/\\u[0-9a-f]{4}/)) { const rawDataJSON = JSON.parse( rawDataString.replace(/\\u([\d\w]{4})/g, (match, p1) => { return String.fromCharCode(parseInt(p1, 16));