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

Commit8f67aae

Browse files
committed
Don't map non-alphanumerics to space in titleize()
Fixes#22.
1 parent3550098 commit8f67aae

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎lib/methods.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ inflect.humanize = function (lower_case_and_underscored_word) {
205205
inflect.titleize=function(word){
206206
varself;
207207
self=inflect.humanize(inflect.underscore(word));
208-
self=util.string.gsub(self,/[^a-zA-Z:']/,' ');
209208
returnutil.string.capitalize(self);
210209
};
211210

‎test/inflector/methods-test.js‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp