General

Profile

Sam Saffron

Issues

Activity

04/28/2016

08:06 AM Ruby trunk Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Sure Nobu,
https://bugs.ruby-lang.org/issues/8206
very close to this feature request that I created years ago.
12:08 AM Ruby trunk Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Just to expand on how hard this is to get right without the framework providing it
See:
https://gist.github.c...

04/27/2016

07:59 AM Ruby trunk Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
note this method exists in .NET String
https://msdn.microsoft.com/en-us/library/system.string.isnullorwhitespace...
06:57 AM Ruby trunk Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Shyouhei Urabe wrote:
> You failed to see the problem because you could not imagine a file path containing U+3000....

04/26/2016

10:12 AM Ruby trunk Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Shyouhei Urabe wrote:
> is clear that the XINCLUDES indicates this string is passed to a shell script. The call o...

04/24/2016

11:03 PM Ruby trunk Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Nobu,
Regarding:
> Most of them looks different from ActiveSupport's String#blank? which is Unicode aware.
...

04/21/2016

04:10 AM Ruby trunk Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Also as a point of reference, have a look at all the calls to String #blank? made from Redmine, the very software pow...
04:07 AM Ruby trunk Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Nobu,
There is a subtle change validation wise with user names:
"Please enter a username, username must not b...
02:29 AM Ruby trunk Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Nobuyoshi Nakada wrote:
> I think that `String#blank?` equals to `/\P{space}/ !~ self`.
> Is it slow, especially th...

04/20/2016

11:33 PM Ruby trunk Feature #12306 (Open): Implement String #blank? #present? and improve #strip and family to handle...
Time and again there have been rejected feature requests to Ruby core to implement `blank` and `present` protocols ac...

Also available in: Atom