Skip to content

Commit

Permalink
Merge pull request #1096 from demisto/remove-list-from-extract
Browse files Browse the repository at this point in the history
Remove unused variable
  • Loading branch information
asafshen authored Dec 24, 2017
2 parents e380d58 + 47f7415 commit e667516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Scripts/script-ExtractDomain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ script: |-
reg = /(?:(?:https?|ftp):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/gmi;
}
var filtered = ['http://schemas.microsoft.com/office/2004/12/omml', 'http://www.w3.org/TR/REC-html40'];
var whitelist = getCSVListAsArray('Indicators Whitelist');
while (found = reg.exec(text)) {
matches[found[0]] = true;
Expand Down Expand Up @@ -161,3 +160,4 @@ outputs:
- contextPath: Domain.Name
description: Extracted domains
scripttarget: 0
releaseNotes: "-"
2 changes: 1 addition & 1 deletion Scripts/script-ExtractURL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ script: |-
reg = /(?:(?:https?|ftp):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/gmi;
}
var filtered = ['http://schemas.microsoft.com/office/2004/12/omml', 'http://www.w3.org/TR/REC-html40'];
var whitelist = getCSVListAsArray('Indicators Whitelist');
while (found = reg.exec(text)) {
matches[found[0]] = true;
Expand Down Expand Up @@ -94,3 +93,4 @@ outputs:
- contextPath: URL.Data
description: Extracted URLs
scripttarget: 0
releaseNotes: "-"

0 comments on commit e667516

Please sign in to comment.