Follow

Not sure how developers can sleep having code like this:

return input.scan(/^\d*/) && $&.to_s

So, the reader/maintainers should read it says:

> Return the prefix of the string consistent of only numbers, otherwise an empty string. Note: no empty spaces allowed at the beginning of the input.

Yes, I do

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.