Skip to content

Commit

Permalink
🐛 bug(link): fix ie traverse custom Array.prototype method (#188) by @…
Browse files Browse the repository at this point in the history
  • Loading branch information
632781460 authored and kazupon committed Jun 30, 2017
1 parent b929bd5 commit d3b308b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ export default class VueI18n {
// them with its translation
const matches: any = ret.match(/(@:[\w\-_|.]+)/g)
for (const idx in matches) {
// ie compatible: filter custom array
// prototype method
if (!matches.hasOwnProperty(idx)) {
continue
}
const link: string = matches[idx]
// Remove the leading @:
const linkPlaceholder: string = link.substr(2)
Expand Down

0 comments on commit d3b308b

Please sign in to comment.