Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 18, 2024. It is now read-only.
/inflectPublic archive

Commit78b0c76

Browse files
committed
Merge pull request#2 from JedWatson/master
Ensure camelize respects first_letter_in_uppercase
2 parentsfe81dd8 +eb10b01 commit78b0c76

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

‎lib/methods.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ inflect.camelize = function(lower_case_and_underscored_word, first_letter_in_upp
4343
if(first_letter_in_uppercase){
4444
returnutil.string.upcase(result);
4545
}else{
46-
returnresult;
46+
returnutil.string.downcase(result);
4747
}
4848
};
4949

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"i",
3-
"version":"0.3.1",
3+
"version":"0.3.2",
44
"author":"Pavan Kumar Sunkara <pavan.sss1991@gmail.com> (pksunkara.github.com)",
55
"description":"custom inflections for nodejs",
66
"main":"./lib/inflect",

‎test/inflector/cases.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
},
9292
UnderscoreToLowerCamel:{
9393
"product":"product",
94+
"Widget":"widget",
9495
"special_guest":"specialGuest",
9596
"application_controller":"applicationController",
9697
"area51_controller":"area51Controller"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp