tty_string 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/tty_string/csi_code.rb +6 -3
- data/lib/tty_string/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: '09c75d4e226fcdb40060ba61420acdbd45496ba321ab76e63e6f3cfaff6c1769'
         | 
| 4 | 
            +
              data.tar.gz: 12cdd2deb8a45550bc3225aafdd02982039d2293ea90e9f82063809512306f2b
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: d01fea8ea93629dc0467ecfb4d37d28a23f53cb4fa3e61843ae1a189e5f1391778d2d79efaacee59dc9855678fda48f1d0434d6bcf6c43f120881399eaed0835
         | 
| 7 | 
            +
              data.tar.gz: 3b06c7653d84ec1bf2864007daee5a958b968ef30a75c0b9463cf22f04aab0ac0d0b24560b9282dcda3c065424503d224324ae7d5b067afc0bec85a22def3b24
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/lib/tty_string/csi_code.rb
    CHANGED
    
    | @@ -27,11 +27,14 @@ module TTYString | |
| 27 27 | 
             
                    @re ||= /\e\[#{args_re}#{char}/
         | 
| 28 28 | 
             
                  end
         | 
| 29 29 |  | 
| 30 | 
            -
                  def args_re
         | 
| 30 | 
            +
                  def args_re # rubocop:disable Metrics/MethodLength
         | 
| 31 31 | 
             
                    case max_args
         | 
| 32 | 
            -
             | 
| 32 | 
            +
                      # :nocov:
         | 
| 33 | 
            +
                    when 0 then nil
         | 
| 34 | 
            +
                      # :nocov:
         | 
| 35 | 
            +
                    when 1 then /[0-:<-?]*/
         | 
| 33 36 | 
             
                    when -1 then %r{[0-?]*[ -/]*}
         | 
| 34 | 
            -
                    else /(?:(?:[0-:<-?]*) | 
| 37 | 
            +
                    else /(?:(?:[0-:<-?]*)(?:;(?:[0-:<-?]*)){0,#{max_args - 1}})?/
         | 
| 35 38 | 
             
                    end
         | 
| 36 39 | 
             
                  end
         | 
| 37 40 |  | 
    
        data/lib/tty_string/version.rb
    CHANGED