-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
通常のダイスロールに続いて、dXX 形式の出目をそのまま各位にして並べるダイスロールを追加した。 また、プラグインのドキュメントに日本語コマンドを追加し、またほかの部分のみ更新を改めた。
- Loading branch information
Showing
4 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# vim: fileencoding=utf-8 | ||
|
||
module RGRB | ||
module Plugin | ||
module DiceRoll | ||
NUM_RE = /[1-9]/ | ||
# アラビア数字による複数桁の数を表す正規表現 | ||
NUMS_RE = /[1-9]\d*/ | ||
KANA_NUM_RE = /[あかさたなはまやら]/ | ||
# ひらがなによる複数桁の数字を表す正規表現 | ||
KANA_NUMS_RE = /[あかさたなはまやら][あかさたなはまやらわ]*/ | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters