is-text-sensitive
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -5,3 +5,3 @@ "use strict"; | ||
// spacing before | for specific words like (anal)ytics | ||
var sensitivePattern = '(anal |sex |xxx|porn|fuck|escorts|seks|incest|ensest|escort|nude|bitch|horny|milf|lesbian|bokep|gay|liseli)'; | ||
var sensitivePattern = '(anal |sex |gay | lust|xxx|porn|fuck|incest|escort|nude|bitch|horny|milf|lesbian|boob|busty|cum|cunt|dick|fetish|hooter|naked|nude|oral|orgy|pussy|topless|seks|ensest|bokep|liseli)'; | ||
var sensitiveRegex = new RegExp(sensitivePattern, 'i'); | ||
@@ -8,0 +8,0 @@ var isTextSensitive = function (incomingText) { |
{ | ||
"name": "is-text-sensitive", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Detect if Text is Sensitive (contains explicit words).", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,2 @@ | ||
Detect if Text is Sensitive (contains explicit words) | ||
Detect if Text is Sensitive (containing words that are explicit, adult, offensive or mature in certain situations) and returns a boolean value (true or false). | ||
@@ -14,4 +14,4 @@ # Installation | ||
// returns true or false | ||
isTextSensitive('Sorry to include this here; what the fuck!'); // true | ||
isTextSensitive('Text containing sensitive/explicit content.'); // false | ||
isTextSensitive('Sorry to include this here; what the fuck!'); // true ✅ | ||
isTextSensitive('Text containing sensitive/explicit content.'); // false ❌ | ||
``` |
// spacing before | for specific words like (anal)ytics | ||
const sensitivePattern = '(anal |sex |xxx|porn|fuck|escorts|seks|incest|ensest|escort|nude|bitch|horny|milf|lesbian|bokep|gay|liseli)'; | ||
const sensitivePattern = '(anal |sex |gay | lust|xxx|porn|fuck|incest|escort|nude|bitch|horny|milf|lesbian|boob|busty|cum|cunt|dick|fetish|hooter|naked|nude|oral|orgy|pussy|topless|seks|ensest|bokep|liseli)'; | ||
const sensitiveRegex = new RegExp(sensitivePattern, 'i'); | ||
@@ -4,0 +4,0 @@ |
@@ -9,3 +9,5 @@ { | ||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ | ||
// "lib": [], /* Specify library files to be included in the compilation. */ | ||
"lib": [ | ||
"ES2015" | ||
], /* Specify library files to be included in the compilation. */ | ||
// "allowJs": true, /* Allow javascript files to be compiled. */ | ||
@@ -12,0 +14,0 @@ // "checkJs": true, /* Report errors in .js files. */ |
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
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
9833
13
98