Skip to content
Commit 4f233d37 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Rubified first_sentence method.

Using \A and \Z is more clear, as these match the beginning and
end of string, while ^ and $ match beginning and end of line.

Removed unneeded variable.

Added rspec to make sure it all works as intended.
parent e5ffa377
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment