Skip to content

Commit

Permalink
Update List.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
KoKo committed Aug 24, 2017
1 parent efc4d5a commit e118967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/List.vue
Expand Up @@ -49,8 +49,8 @@ export default {
},
filters: {
subStr: function (value) {
value.replace(/<.+>|\s/, '')
return value.slice(0, 30)
let newVal = value.replace(/<.*?>/g, '')
return newVal.slice(0, 30)
}
}
}
Expand Down

0 comments on commit e118967

Please sign in to comment.