Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-text-sensitive

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-text-sensitive - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

lib/languages/universal.d.ts

2

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc