Skip to content

Commit 4bebfd4

Browse files
committed
up version
1 parent 5c766dd commit 4bebfd4

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.linting.pylintEnabled": false
3+
}

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.2.6
2+
- Add support for case sensitive slugs (@s-m-e)
3+
14
## 1.2.5
25
- Add support for using text-unidecode (@bolkedebruin)
36
- Switch to pycodestyle instead of pep8

README.rst

+7
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ How to use
162162
r = slugify(txt, stopwords=['the', 'in', 'a', 'hurry'])
163163
self.assertEqual(r, 'quick-brown-fox-jumps-over-lazy-dog')
164164
165+
txt = 'thIs Has a stopword Stopword'
166+
r = slugify(txt, stopwords=['Stopword'], lowercase=False)
167+
self.assertEqual(r, 'thIs-Has-a-stopword')
168+
165169
txt = 'foo & bar'
166170
r = slugify(txt)
167171
self.assertEqual(r, 'foo-bar')
@@ -176,6 +180,8 @@ How to use
176180
r = slugify(txt, separator='_', regex_pattern=regex_pattern)
177181
self.assertNotEqual(r, "_this_is_a_test_")
178182
183+
# for more examples, have a look at the (`TEST` _) file.
184+
179185
Running the tests
180186
-----------------
181187

@@ -222,3 +228,4 @@ X.Y.Z Version
222228

223229
.. _MIT: https://github.com/un33k/python-slugify/blob/master/LICENSE
224230

231+
.. _TEST: https://github.com/un33k/python-slugify/blob/master/test.py

slugify/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
__author__ = 'Val Neekman @ Neekware Inc. [@vneekman]'
55
__description__ = 'A Python slugify application that also handles Unicode'
6-
__version__ = '1.2.5'
6+
__version__ = '1.2.6'

0 commit comments

Comments
 (0)