react-htmlcontent
Advanced tools
Comparing version 1.2.9 to 1.2.10
@@ -65,5 +65,5 @@ "use strict"; | ||
var r = enhanceTypo.apply(void 0, [str].concat(rest)); | ||
return r.replace(/\s\s/g, ' '); | ||
return r.replace(/\s\s/g, ' ').replace(/([A-z]{1,})\s?(\([A-z]{1}\))\s?([A-z]{1,})/, '$1$2$3'); | ||
}; | ||
exports.default = _default; |
{ | ||
"name": "react-htmlcontent", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"description": "React HTMLContent Component", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -15,2 +15,6 @@ import enhanceTypo from '../src/enhanceTypo' | ||
test('Sracky', () => { | ||
expect(enhanceTypo('Po(d)klady', 'cs', {})).toEqual('Po(d)klady') | ||
}) | ||
test('Simple HTML', () => { | ||
@@ -17,0 +21,0 @@ expect( |
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
656090
2927