PHP Classes

Bug Report

Recommend this page to a friend!

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

  1. Bug Report   Reply   Report abuse  
Picture of Stefan Jibrail Froelich Stefan Jibrail Froelich - 2011-08-24 14:15:00
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.