diff options
author | Val Neekman <val@neekware.com> | 2015-07-08 09:40:22 -0400 |
---|---|---|
committer | Val Neekman <val@neekware.com> | 2015-07-08 09:40:22 -0400 |
commit | 632ea7d6d54302443d8011727ed5ef7174d50640 (patch) | |
tree | fdcc81fd1dd812dbd307566b11c3942917025691 /README.md | |
parent | 2a55aed04fed93b5fc99b8a305ef713fc25faac8 (diff) | |
download | python-slugify-632ea7d6d54302443d8011727ed5ef7174d50640.tar.gz |
up version1.1.3
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -142,6 +142,10 @@ How to use txt = 'the quick brown fox jumps over the lazy dog in a hurry' r = slugify(txt, stopwords=['the', 'in', 'a', 'hurry']) self.assertEqual(r, 'quick-brown-fox-jumps-over-lazy-dog') + + txt = 'foo & bar' + r = slugify(txt) + self.assertEqual(r, 'foo-bar') ``` Running the tests @@ -169,8 +173,8 @@ X.Y.Z Version [status-image]: https://secure.travis-ci.org/un33k/python-slugify.png?branch=master [status-link]: http://travis-ci.org/un33k/python-slugify?branch=master -[version-image]: https://img.shields.io/pypi/v/djangorestframework.svg -[version-link]: https://pypi.python.org/pypi/djangorestframework +[version-image]: https://img.shields.io/pypi/v/python-slugify.svg +[version-link]: https://pypi.python.org/pypi/python-slugify [coverage-image]: https://coveralls.io/repos/un33k/python-slugify/badge.svg [coverage-link]: https://coveralls.io/r/un33k/python-slugify |