Skip to content

Commit

Permalink
fix: fix converting to camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
woothu committed May 20, 2020
1 parent b56bb60 commit c914bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CIconRaw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export default {
methods: {
toCamelCase (str) {
return str.replace(/([-_][a-z0-9])/ig, ($1) => {
return $1.toUpperCase().replace('-', '')
})
return $1.toUpperCase()
}).replace('-', '')
}
}
}
Expand Down

0 comments on commit c914bc0

Please sign in to comment.