react-text-format
Advanced tools
Comparing version 2.0.22 to 2.0.23
{ | ||
"name": "react-text-format", | ||
"version": "2.0.22", | ||
"version": "2.0.23", | ||
"description": "React Component to find and parse links, emails, phone numbers, credit cards and keywords to required format.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://react-ninja.github.io/react-text-format/", |
@@ -44,15 +44,13 @@ # react-text-format | ||
This is demo link http://www.google.com | ||
<br/><br/> | ||
This is demo email <span data-email="email@span.com">jago@yahoo.com</span> | ||
<br /><br /> | ||
This is demo email <span data-email="miller@yahoo.com">miller@yahoo.com</span> | ||
This is demo image https://preview.ibb.co/hqhoyA/lexie-barnhorn-1114350-unsplash.jpg | ||
<br /><br /> | ||
This is demo credit Card 5555555555554444 | ||
<br /><br /> | ||
This is demo phone Number 123.456.7890 <br /> | ||
This is demo phone Number (212) 555 1212 <br /> | ||
This is demo phone Number (212) 555-1212 <br /> | ||
This is demo phone Number 212-555-1212 ext. 101 <br /> | ||
This is demo phone Number 212 555 1212 x101 <br /> | ||
<br /><br /> | ||
This is demo phone Number 123.456.7890 | ||
This is demo phone Number (212) 555 1212 | ||
This is demo phone Number (212) 555-1212 | ||
This is demo phone Number 212-555-1212 ext. 101 | ||
This is demo phone Number 212 555 1212 x101 | ||
This is an anchor <a href="http://formatter.com">http://formatter.com</a>; | ||
@@ -110,7 +108,6 @@ </ReactTextFormat>, | ||
customPhoneDecorator = ( | ||
decoratedText: string, | ||
key: number | ||
decoratedText: string | ||
): React.Node => { | ||
return ( | ||
<a href={`tel:${decoratedText}`} className='customPhone'> | ||
<a href={`tel:${decoratedText}`} className='customPhone'> | ||
{decoratedText} | ||
@@ -151,17 +148,16 @@ </a> | ||
This is demo link http://www.google.com | ||
<br/><br/> | ||
This is encoded Link http://go%2Emsn%2Ecom/nl/133942%2Easp | ||
<br /> | ||
This is demo email <span data-email="email@span.com">jago@yahoo.com</span> | ||
<br /><br /> | ||
This is demo image https://preview.ibb.co/hqhoyA/lexie-barnhorn-1114350-unsplash.jpg | ||
<br /><br /> | ||
This is demo email <span data-email="miller@yahoo.com">miller@yahoo.com</span> | ||
This is demo image | ||
https://preview.ibb.co/hqhoyA/lexie-barnhorn-1114350-unsplash.jpg | ||
This is demo credit Card 5555555555554444 | ||
<br /><br /> | ||
This is demo phone Number 123.456.7890 <br /> | ||
This is demo phone Number (212) 555 1212 <br /> | ||
This is demo Phone Number (212) 555-1212 <br /> | ||
This is demo phone Number 212-555-1212 ext. 101 <br /> | ||
This is demo phone Number 212 555 1212 x101 <br /> | ||
<br /><br /> | ||
This is demo phone Number 123.456.7890 | ||
This is demo phone Number (212) 555 1212 | ||
This is demo Phone Number (212) 555-1212 | ||
This is demo phone Number 212-555-1212 ext. 101 | ||
This is demo phone Number 212 555 1212 x101 | ||
This is an anchor <a href="http://formatter.com">http://formatter.com</a>; | ||
@@ -168,0 +164,0 @@ </ReactTextFormat>, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
787958
168