Update slugify.ls

This commit is contained in:
devmapper0 2016-11-26 17:00:24 +01:00 committed by GitHub
parent 8d9896d932
commit 3f0ed799a0

View File

@ -1,4 +1,4 @@
# source: http://stackoverflow.com/a/5782563
# source: https://stackoverflow.com/a/5782563
export slugify = (string) ->
string = string.replace(/^\s+|\s+$/g, '')
string = string.to-lower-case!