From 81724d525ba321c97fb9888d5a4a1e616d05ad86 Mon Sep 17 00:00:00 2001 From: XPA Date: Sat, 7 Oct 2023 12:17:08 +0900 Subject: [PATCH 1/2] fix: nicoscript parser --- src/utils/comment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/comment.ts b/src/utils/comment.ts index 6dcae112..c61359cf 100755 --- a/src/utils/comment.ts +++ b/src/utils/comment.ts @@ -245,7 +245,7 @@ const processNicoscript = ( comment: FormattedComment, commands: ParsedCommand, ) => { - const nicoscript = RegExp(/^[@\uff20](.*)(?:\s(.+))?/).exec(comment.content); + const nicoscript = RegExp(/^[@\uff20](\S+)(?:\s(.+))?/).exec(comment.content); if (!nicoscript) return; if (nicoscript[1] === "\u30dc\u30bf\u30f3" && nicoscript[2]) { //ボタン From 0659867153f87b7029352f662a3cb7f2e0ac37fe Mon Sep 17 00:00:00 2001 From: XPA Date: Sat, 7 Oct 2023 12:17:46 +0900 Subject: [PATCH 2/2] release: v0.2.60 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8cc14c41..51df72b2 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xpadev-net/niconicomments", - "version": "0.2.59", + "version": "0.2.60", "description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.", "main": "dist/bundle.js", "types": "dist/bundle.d.ts",