From e169ad93f44e1944ecf7bb65133fd34e8b868ea8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 17 Oct 2019 14:42:38 +0900 Subject: Fixed File.extname at a name ending with a dot File.extname now returns a dot string at a name ending with a dot. [Bug #15267] --- NEWS | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 84f9c1e2f1..e8fdfe0cf5 100644 --- a/NEWS +++ b/NEWS @@ -191,6 +191,14 @@ Fiber:: * Added Fiber#raise that behaves like Fiber#resume but raises an exception on the resumed fiber. [Feature #10344] +File:: + Modified method:: + + * File.extname now returns a dot string at a name ending with a + dot. [Bug #15267] + + File.extname("foo.") #=> "." + FrozenError:: New method:: -- cgit v1.2.3