[ruby-cvs:70205] kazu:r63115 (trunk): [DOC] `*` in glob matches `\n` too [ci skip]

kazu at ruby-lang.org kazu at ruby-lang.org
Sun Apr 8 16:31:46 JST 2018


kazu	2018-04-08 16:31:46 +0900 (Sun, 08 Apr 2018)

  New Revision: 63115

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63115

  Log:
    [DOC] `*` in glob matches `\n` too [ci skip]
    
    ```
    File.fnmatch("a*b", "a\nb") # => true
    /\Aa.*b\z/x.match?("a\nb")  # => false
    /\Aa.*b\z/mx.match?("a\nb") # => true
    ```

  Modified files:
    trunk/dir.c


More information about the ruby-cvs mailing list