diff options
| -rw-r--r-- | .vscode/settings.json | 3 | ||||
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | README.rst | 7 | ||||
| -rw-r--r-- | slugify/__init__.py | 2 |
4 files changed, 14 insertions, 1 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..20d15cb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.linting.pylintEnabled": false +}
\ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ccebfe..84f3436 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.2.6 + - Add support for case sensitive slugs (@s-m-e) + ## 1.2.5 - Add support for using text-unidecode (@bolkedebruin) - Switch to pycodestyle instead of pep8 @@ -162,6 +162,10 @@ How to use r = slugify(txt, stopwords=['the', 'in', 'a', 'hurry']) self.assertEqual(r, 'quick-brown-fox-jumps-over-lazy-dog') + txt = 'thIs Has a stopword Stopword' + r = slugify(txt, stopwords=['Stopword'], lowercase=False) + self.assertEqual(r, 'thIs-Has-a-stopword') + txt = 'foo & bar' r = slugify(txt) self.assertEqual(r, 'foo-bar') @@ -176,6 +180,8 @@ How to use r = slugify(txt, separator='_', regex_pattern=regex_pattern) self.assertNotEqual(r, "_this_is_a_test_") + # for more examples, have a look at the (`TEST` _) file. + Running the tests ----------------- @@ -222,3 +228,4 @@ X.Y.Z Version .. _MIT: https://github.com/un33k/python-slugify/blob/master/LICENSE +.. _TEST: https://github.com/un33k/python-slugify/blob/master/test.py diff --git a/slugify/__init__.py b/slugify/__init__.py index 02393a1..1a02a3e 100644 --- a/slugify/__init__.py +++ b/slugify/__init__.py @@ -3,4 +3,4 @@ from .slugify import * __author__ = 'Val Neekman @ Neekware Inc. [@vneekman]' __description__ = 'A Python slugify application that also handles Unicode' -__version__ = '1.2.5' +__version__ = '1.2.6' |
