Skip to content

Commit

Permalink
Merge pull request #61 from xpadev-net/develop
Browse files Browse the repository at this point in the history
release: v0.2.60
  • Loading branch information
xpadev-net authored Oct 7, 2023
2 parents 537ffc1 + 0659867 commit a6e1e94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
//ボタン
Expand Down

0 comments on commit a6e1e94

Please sign in to comment.