mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] no change on Windows [Bug #15267] [ci skip]
This commit is contained in:
parent
e169ad93f4
commit
4f13927f1f
2 changed files with 6 additions and 3 deletions
4
NEWS
4
NEWS
|
@ -194,8 +194,8 @@ Fiber::
|
||||||
File::
|
File::
|
||||||
Modified method::
|
Modified method::
|
||||||
|
|
||||||
* File.extname now returns a dot string at a name ending with a
|
* File.extname now returns a dot string at a name ending with a dot on
|
||||||
dot. [Bug #15267]
|
non-Windows platforms. [Bug #15267]
|
||||||
|
|
||||||
File.extname("foo.") #=> "."
|
File.extname("foo.") #=> "."
|
||||||
|
|
||||||
|
|
5
file.c
5
file.c
|
@ -4789,10 +4789,13 @@ ruby_enc_find_extname(const char *name, long *len, rb_encoding *enc)
|
||||||
* An empty string will also be returned when the period is the last character
|
* An empty string will also be returned when the period is the last character
|
||||||
* in +path+.
|
* in +path+.
|
||||||
*
|
*
|
||||||
|
* On Windows, trailing dots are truncated.
|
||||||
|
*
|
||||||
* File.extname("test.rb") #=> ".rb"
|
* File.extname("test.rb") #=> ".rb"
|
||||||
* File.extname("a/b/d/test.rb") #=> ".rb"
|
* File.extname("a/b/d/test.rb") #=> ".rb"
|
||||||
* File.extname(".a/b/d/test.rb") #=> ".rb"
|
* File.extname(".a/b/d/test.rb") #=> ".rb"
|
||||||
* File.extname("foo.") #=> "."
|
* File.extname("foo.") #=> "" on Windows
|
||||||
|
* File.extname("foo.") #=> "." on non-Windows
|
||||||
* File.extname("test") #=> ""
|
* File.extname("test") #=> ""
|
||||||
* File.extname(".profile") #=> ""
|
* File.extname(".profile") #=> ""
|
||||||
* File.extname(".profile.sh") #=> ".sh"
|
* File.extname(".profile.sh") #=> ".sh"
|
||||||
|
|
Loading…
Add table
Reference in a new issue