summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorVal Neekman <val@neekware.com>2018-09-02 12:36:52 -0400
committerVal Neekman <val@neekware.com>2018-09-02 12:36:52 -0400
commitbeca50eaff20ca20652df782354a8f184c1eaf4c (patch)
treef0afd8a85c1069d5d1f1922cdf5fb45bd0c93841 /README.rst
parent4c1a344652dfef32f786a96d94b351f4277da964 (diff)
downloadpython-slugify-1.2.6.tar.gz
release 1.2.6, case sensitive slug support1.2.6
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 9604965..dbdeb52 100644
--- a/README.rst
+++ b/README.rst
@@ -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 &amp; 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
-----------------
@@ -189,7 +195,7 @@ To run the tests against the current environment:
License
-------
-Released under a (`MIT`_) license.
+Released under a (`TEST`_) license.
**Note:**
@@ -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