Skip to content

Commit

Permalink
Merge pull request #2509 from mattmurch/Issue549
Browse files Browse the repository at this point in the history
Add default replace for - to _
  • Loading branch information
sampsyo committed Apr 16, 2017
2 parents 346ecbc + 6e29514 commit 8a99eea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions beets/config_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ replace:
'\.$': _
'\s+$': ''
'^\s+': ''
'^-': _
path_sep_replace: _
asciify_paths: false
art_filename: cover
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ New features:

Fixes:

* :ref:`replace`: Added default replace for - to _. :bug:`549`
* :doc:`/plugins/absubmit`: Do not filter for supported formats. :bug:`2471`
* :doc:`/plugins/mpdupdate`: Fix Python 3 compatibility. :bug:`2381`
* :doc:`/plugins/replaygain`: Fix Python 3 compatibility in the ``bs1770gain``
Expand Down
1 change: 1 addition & 0 deletions docs/reference/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ unexpected behavior on all popular platforms::
'\.$': _
'\s+$': ''
'^\s+': ''
'^-': _

These substitutions remove forward and back slashes, leading dots, and
control characters—all of which is a good idea on any OS. The fourth line
Expand Down

0 comments on commit 8a99eea

Please sign in to comment.