Skip to content

Commit

Permalink
fix: altnative endsWidth (#840)
Browse files Browse the repository at this point in the history
closes #839
  • Loading branch information
kazupon committed Apr 16, 2020
1 parent 3e0e2b1 commit 60e55df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ export default class VueI18n {
if (!chain.includes(item)) {
follow = true
if (item) {
follow = !item.endsWith('!')
follow = item[item.length - 1] !== '!'
item = item.replace(/!/g, '')
chain.push(item)
if (blocks && blocks[item]) {
Expand Down

0 comments on commit 60e55df

Please sign in to comment.