Skip to content

Commit e5a6d18

Browse files
authored
Merge pull request #1 from TeamCFML/dawesi-patch-1
Added PascalCase and corrected camelCase
2 parents 9158099 + 0593f0a commit e5a6d18

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

README.markdown

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coldfusion-inflector
22

33
This is a ColdFusion component which provides the ability to transform
4-
words from singular to plural (and back again), capitalises, CamelCases
4+
words from singular to plural (and back again), capitalises, PascalCase or CamelCases
55
and humanises. It is based on the Ruby on Rails
66
[ActiveSupport::Inflector][rails-inflector] class.
77

@@ -32,23 +32,21 @@ Pluralisation and singularisation both take into account:
3232

3333
* `capitalise` capitalises the first character in a string: `test`
3434
becomes `Test`
35-
* `CamelCase` converts a given string to CamelCase, with all
36-
non-alphanumeric characters stripped: `camel_case` becomes `CamelCase`
35+
* `camelCase` converts a given string to CamelCase, with all
36+
non-alphanumeric characters stripped: `camel_case` becomes `camelCase`
37+
* `PascalCase` converts a given string to PascalCase, with all
38+
non-alphanumeric characters stripped: `pascal_case` becomes `PascalCase`
3739
* `variablise` converts a string to an underscore-separated list:
38-
`CamelCase` becomes `camel_case`
40+
`PascalCase` or `camelCase` becomes `camel_case`
3941
* `humanise` converts a string to a human-readable form:
40-
`CamelCase` becomes `Camel Case`
42+
`PascalCase` or `CamelCase` becomes `Camel Case`
4143
* `pad` pads a given string with spaces.
4244

4345
See `test/tests/InflectorTest.cfc` for how other strings are handled.
4446

4547
## Licensing and Attribution
4648

47-
coldfusion-inflector was developed by [Tim Blair][timblair] and is
49+
coldfusion-inflector was originally developed by [Tim Blair][timblair] and updated by [TeamCFML][teamCFML] and is
4850
released under the MIT license as detailed in the LICENSE file that
4951
should be distributed with this library; the source code is
50-
[freely available](http://github.com/timblair/coldfusion-inflector).
51-
52-
[rails-inflector]: http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html
53-
[timblair]: http://tim.bla.ir/
54-
[cf-inflector]: http://github.com/timblair/coldfusion-inflector
52+
[freely available](https://github.com/TeamCFML/coldfusion-inflector).

0 commit comments

Comments
 (0)