Skip to content
Snippets Groups Projects
Commit 2aa08d01 authored by Tim Fesenko's avatar Tim Fesenko Committed by Valentine Zavgorodnev
Browse files

remove less than and greater than from slugs, resolves #423 (#490)

parent 1e15ae25
No related branches found
No related tags found
No related merge requests found
...@@ -404,7 +404,7 @@ function* error_vote({operation: {author, permlink}}) { ...@@ -404,7 +404,7 @@ function* error_vote({operation: {author, permlink}}) {
// } // }
function slug(text) { function slug(text) {
return getSlug(text, {truncate: 128}) return getSlug(text.replace(/[<>]/g, ''), {truncate: 128})
//const shorten = txt => { //const shorten = txt => {
// let t = '' // let t = ''
// let words = 0 // let words = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment