Project

General

Profile

Backport #2477

String#split should be ASCII sensitive

Added by naruse (Yui NARUSE) almost 10 years ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
[ruby-dev:39881]

Description

=begin
If r24544 is backported, r24934 is also worth backported.

Author: naruse naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Date: Tue Sep 15 05:27:29 2009 +0000

 Use rb_isspace for ASCII-incompatible strings.

 * string.c (rb_str_split_m): use rb_isspace when the string
   may be ASCII-incompatible.
   (rb_str_lstrip_bang): ditto.
   (rb_str_rstrip_bang): ditto.

=end


Related issues

Related to Ruby master - Feature #2093: String#stripの対象は\sか[:space:]かClosed09/13/2009Actions

History

#1

Updated by jeremyevans0 (Jeremy Evans) 2 months ago

  • Status changed from Assigned to Closed
  • Description updated (diff)

Also available in: Atom PDF