@rocket.chat/string-helpers
Advanced tools
Comparing version 0.6.3-dev.291 to 0.6.3-dev.298
@@ -11,2 +11,3 @@ "use strict"; | ||
'®': 'reg', | ||
'™': 'trade', | ||
'<': 'lt', | ||
@@ -13,0 +14,0 @@ '>': 'gt', |
@@ -10,3 +10,3 @@ "use strict"; | ||
expect(escapeHTML_1.escapeHTML('¢')).toBe('¢'); | ||
expect(escapeHTML_1.escapeHTML('¢ £ ¥ € © ®')).toBe('¢ £ ¥ € © ®'); | ||
expect(escapeHTML_1.escapeHTML('¢ £ ¥ € © ® ™')).toBe('¢ £ ¥ € © ® ™'); | ||
expect(escapeHTML_1.escapeHTML(5)).toBe('5'); | ||
@@ -13,0 +13,0 @@ expect(escapeHTML_1.escapeHTML('')).toBe(''); |
@@ -12,2 +12,3 @@ "use strict"; | ||
reg: '®', | ||
trade: '™', | ||
lt: '<', | ||
@@ -14,0 +15,0 @@ gt: '>', |
@@ -23,2 +23,3 @@ "use strict"; | ||
expect(unescapeHTML_1.unescapeHTML('® trademark')).toBe('® trademark'); | ||
expect(unescapeHTML_1.unescapeHTML('™ unregistered trademark')).toBe('™ unregistered trademark'); | ||
expect(unescapeHTML_1.unescapeHTML('© 1992. License available for 50 ¢')).toBe('© 1992. License available for 50 ¢'); | ||
@@ -25,0 +26,0 @@ expect(unescapeHTML_1.unescapeHTML(' ')).toBe(' '); |
@@ -8,2 +8,3 @@ var characterToHtmlEntityCode = { | ||
'®': 'reg', | ||
'™': 'trade', | ||
'<': 'lt', | ||
@@ -10,0 +11,0 @@ '>': 'gt', |
@@ -8,3 +8,3 @@ import { escapeHTML } from './escapeHTML'; | ||
expect(escapeHTML('¢')).toBe('¢'); | ||
expect(escapeHTML('¢ £ ¥ € © ®')).toBe('¢ £ ¥ € © ®'); | ||
expect(escapeHTML('¢ £ ¥ € © ® ™')).toBe('¢ £ ¥ € © ® ™'); | ||
expect(escapeHTML(5)).toBe('5'); | ||
@@ -11,0 +11,0 @@ expect(escapeHTML('')).toBe(''); |
@@ -9,2 +9,3 @@ var htmlEntityCodeToCharacter = { | ||
reg: '®', | ||
trade: '™', | ||
lt: '<', | ||
@@ -11,0 +12,0 @@ gt: '>', |
@@ -21,2 +21,3 @@ import { unescapeHTML } from './unescapeHTML'; | ||
expect(unescapeHTML('® trademark')).toBe('® trademark'); | ||
expect(unescapeHTML('™ unregistered trademark')).toBe('™ unregistered trademark'); | ||
expect(unescapeHTML('© 1992. License available for 50 ¢')).toBe('© 1992. License available for 50 ¢'); | ||
@@ -23,0 +24,0 @@ expect(unescapeHTML(' ')).toBe(' '); |
{ | ||
"name": "@rocket.chat/string-helpers", | ||
"version": "0.6.3-dev.291+4fe3e5af", | ||
"version": "0.6.3-dev.298+c66b22e1", | ||
"description": "Helper functions for string manipulation", | ||
@@ -52,3 +52,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@rocket.chat/eslint-config-alt": "^0.6.3-dev.291+4fe3e5af", | ||
"@rocket.chat/eslint-config-alt": "^0.27.0", | ||
"@rocket.chat/prettier-config": "^0.27.0", | ||
@@ -70,3 +70,3 @@ "@types/jest": "^26.0.24", | ||
}, | ||
"gitHead": "4fe3e5af7da4f16cb5c4317a5f2ce297c0ff73da" | ||
"gitHead": "c66b22e14693622820edef4dabd0b34f0b04ece4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
52210
460