fdisotto / SlimBlog

Simple Blog written with Slim Framework
GNU General Public License v3.0
102 stars 39 forks source link

Strange bug when truncate is actived #16

Closed DavidePastore closed 10 years ago

DavidePastore commented 10 years ago

I have a post with this text: Strange world.

What I see in the home page is: strange world

I think it's a problem with preg_replace() calling in first_n_words() function.

fdisotto commented 10 years ago

Sorry for delay, I had really little time, you are right, the problem is in first_n_words function. I think to correct it in a day.

fdisotto commented 10 years ago

I think this problem is fixed, try to check it

DavidePastore commented 10 years ago

The problem is still here. slimblog2

fdisotto commented 10 years ago

Pushed, check it :smile:

DavidePastore commented 10 years ago

I'm a tester :palm_tree: It works fine now.

Please consider to add automatic test for this purpose.

fdisotto commented 10 years ago

Is not a bad idea, in the future :stuck_out_tongue_closed_eyes: