Skip to content

Commit

Permalink
正規表現のミスを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ysakasin committed Mar 31, 2021
1 parent 8fde10e commit 0105021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/how_to_make_dicebot.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ BCDiceは入力された文字列にたいして様々な前処理を行った
private

def roll_ot(command)
m = /^(\d)+OT>=(\d+)$/.match(command)
m = /^(\d+)OT>=(\d+)$/.match(command)
return nil unless m

times = m[1].to_i
Expand Down
2 changes: 1 addition & 1 deletion example/OnseTool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def eval_game_system_specific_command(command)
private

def roll_ot(command)
m = /^(\d)+OT>=(\d+)$/.match(command)
m = /^(\d+)OT>=(\d+)$/.match(command)
return nil unless m

times = m[1].to_i
Expand Down

0 comments on commit 0105021

Please sign in to comment.