Skip to content

Commit

Permalink
Fixed #4011
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 19, 2019
1 parent 0f85b39 commit acbda39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
- The `_includes/forms/text` Control Panel template now supports passing `autocorrect: false` and `autocapitalize: false`, to disable autocorrect and auto-capitalization on iOS devices.
- iOS autocorrect and auto-capitalization has been disabled for all core “Handle” and “Slug” fields in the Control Panel. ([#4009](https://github.com/craftcms/cms/issues/4009))

### Fixed
- Fixed a bug where Craft wasn’t removing hyphens and other symbols from auto-generated asset titles. ([#4011](https://github.com/craftcms/cms/issues/4011))

## 3.1.19 - 2019-03-19

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public static function prepareAssetName(string $name, bool $isFilename = true, b
*/
public static function filename2Title(string $filename): string
{
return StringHelper::upperCaseFirst(implode(' ', StringHelper::toWords($filename)));
return StringHelper::upperCaseFirst(implode(' ', StringHelper::toWords($filename, false, true)));
}

/**
Expand Down

0 comments on commit acbda39

Please sign in to comment.