Git Product home page Git Product logo

Comments (1)

ysakasin avatar ysakasin commented on June 5, 2024

if の中に __last_match_n が生成されていて、 else で参照できなくなっている

elsif 中に __last_match_n が生成されていない

    if (/CC(B)?(\d+)<=(\d+)/i =~ command)
__last__match__1 = $1
__last__match__2 = $2
__last__match__3 = $3
__last__match__4 = $4
__last__match__5 = $5
__last__match__6 = $6
__last__match__7 = $7
__last__match__8 = $8
__last__match__9 = $9
__last__match__10 = $10
__last__match__11 = $11
__last__match__12 = $12
__last__match__13 = $13
__last__match__14 = $14
__last__match__15 = $15
__last__match__16 = $16
__last__match__17 = $17
__last__match__18 = $18
__last__match__19 = $19
__last__match__20 = $20

      # /\(\d+\)/の()はpattern-killerにカイシャクされるらしい
      broken_num = __last__match__2.to_i
      diff = __last__match__3.to_i
    elsif (/CC(B)?<=(\d+)/i =~ command)
      diff = __last__match__2.to_i
    end

from bcdice-js.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.