PHP Classes

bug

Recommend this page to a friend!

      Akelos PHP Inflector  >  All threads  >  bug  >  (Un) Subscribe thread alerts  
Subject:bug
Summary:a bug in one of the regex strings
Messages:1
Author:Stefan Jibrail Froelich
Date:2011-08-24 14:13:21
 

  1. bug   Reply   Report abuse  
Picture of Stefan Jibrail Froelich Stefan Jibrail Froelich - 2011-08-24 14:13:27
First, let me thank you for a great library.

In the pluralize method, the regex

'/(alias|status)/i'

is missing a "$". This causes strings like "status_message" to be pluralized to "statuses_message" instead of "status_messages"
The correct regex should be

/(alias|status)$/i'

Most likely you already fixed this but this is for those still using the version you have here. Hope this helped.