laravel/laravel — pull request #811 by xsbeats (2012-06-13 18:02:21+00:00)
Title: Feature: Str::limit_exact    limits a string including its custom ending to a specified length

Slight extension of the current Str::limit method

Where the limit method limits the input's length and then adds the ending, limit_exact limits the length of the input and it's ending to an exact length. It is the same as using the limit method and reducing the limit by the length of the ending.

This is useful when you want to specify the exact length you want returned (ie 140 for a tweet, etc)