Skip to content

Commit

Permalink
fix: さくらスクリプト消去時に周辺の数字が消えていたのを修正
Browse files Browse the repository at this point in the history
「\n123」の1が消えたりしていた
  • Loading branch information
apxxxxxxe committed Oct 21, 2023
1 parent 8d93051 commit c70a038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/speak/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Dialog struct {
Text string
}

var tagRep = regexp.MustCompile(`\\_{0,2}[a-zA-Z0-9*!&\-+](\d|\[("([^"]|\\")+?"|([^\]]|\\\])+?)+?\])?`)
var tagRep = regexp.MustCompile(`\\_{0,2}(w[1-9]|[a-zA-Z0-9*!&\-+](\[("([^"]|\\")+?"|([^\]]|\\\])+?)+?\])?)`)
var delimRep = regexp.MustCompile(`[!!??。]`)
var chScopeRep = regexp.MustCompile(`(\\([0h1u])|\\p\[([0-9]+)\])`)

Expand Down
2 changes: 1 addition & 1 deletion yaya_plugin_main.dic
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,5 @@ GetVoiceCode

version
{
"%(name)/1.4.0"
"%(name)/1.4.1"
}

0 comments on commit c70a038

Please sign in to comment.