PHP Classes

Bug Report

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in

      Akelos PHP Inflector  >  All threads  >  Bug Report  >  (Un) Subscribe thread alerts  
Subject:Bug Report
Summary:A bug in one of the regex strings
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


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


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