Skip to content

Commit

Permalink
add ;s
Browse files Browse the repository at this point in the history
  • Loading branch information
olslash committed May 27, 2016
1 parent 7e831e4 commit 7f11186
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Linkify.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ class Linkify extends React.Component {
}

componentDidMount() {
this.addCustomHandlers()
this.addCustomHandlers();
}

componentDidUpdate(nextProps) {
if (this.props.handlers !== nextProps.handlers) {
this.addCustomHandlers()
this.addCustomHandlers();
}
}

addCustomHandlers() {
const { handlers } = this.props
const { handlers } = this.props;

if (handlers.length) {
this.linkify = new LinkifyIt();
Expand All @@ -49,15 +49,15 @@ class Linkify extends React.Component {
this.linkify.add(handler.prefix, {
validate: handler.validate,
normalize: handler.normalize
})
})
});
});
}
}

parseCounter = 0

getMatches(string) {
const linkifyInstance = this.linkify ? this.linkify : linkify
const linkifyInstance = this.linkify ? this.linkify : linkify;

return linkifyInstance.match(string);
}
Expand Down

0 comments on commit 7f11186

Please sign in to comment.