Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1033599 // FreeOfLocalBlockedKeyword

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10237L/56K).

1  
sclass FreeOfLocalBlockedKeyword is IPred<S> {
2  
  RegExp regExp;
3  
  
4  
  *() {
5  
    LS words = tlft(loadJavaXSecretTextFile("hidden-keywords.txt"));
6  
    regExp = empty(words) ? null : cicAnyToRegexp(words);
7  
  }
8  
  
9  
  public Bool get(S s) {
10  
    ret regExp == null || !regExp.containedIn(s);
11  
  }
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1033599
Snippet name: FreeOfLocalBlockedKeyword
Eternal ID of this version: #1033599/5
Text MD5: cc08398be14be72052a2e43322d73e82
Transpilation MD5: 9020a4cdf6d37bf23e7eb7a75d6a0279
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-04 23:12:35
Source code size: 300 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 176 / 311
Version history: 4 change(s)
Referenced in: [show references]