Skip to content

Commit

Permalink
Reverse obfuscated parenthesis (resolves #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coston Perkins committed Dec 16, 2017
1 parent e02cbcd commit d3b5963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obfuscate.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Obfuscate extends Component {
const { tel, sms, facetime, email, obfuscate, headers, children, ...others } = this.props
return (
<a onClick={this.handleClick.bind(this)} href='obfuscated' {...others} style={{direction: 'rtl', unicodeBidi: 'bidi-override'}}>
{ this.reverse(tel || sms || facetime || email) || children }
{ this.reverse(tel || sms || facetime || email).replace('(',')').replace(')', '(') || children }
</a>
)
}
Expand Down

0 comments on commit d3b5963

Please sign in to comment.