From 8f7e766c0400b7d0cea120fa3d5b813a5e84a418 Mon Sep 17 00:00:00 2001 From: Macide Celik Date: Tue, 29 Oct 2019 11:32:10 +0300 Subject: [PATCH] Delete ExtractDomains.mjs --- src/core/operations/ExtractDomains.mjs | 47 -------------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/core/operations/ExtractDomains.mjs diff --git a/src/core/operations/ExtractDomains.mjs b/src/core/operations/ExtractDomains.mjs deleted file mode 100644 index cc65ff4b..00000000 --- a/src/core/operations/ExtractDomains.mjs +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @author n1474335 [n1474335@gmail.com] - * @copyright Crown Copyright 2016 - * @license Apache-2.0 - */ - -import Operation from "../Operation.mjs"; -import { search, DOMAIN_REGEX } from "../lib/Extract.mjs"; - -/** - * Extract domains operation - */ -class ExtractDomains extends Operation { - - /** - * ExtractDomains constructor - */ - constructor() { - super(); - - this.name = "Extract domains"; - this.module = "Regex"; - this.description = "Extracts fully qualified domain names.
Note that this will not include paths. Use Extract URLs to find entire URLs."; - this.inputType = "string"; - this.outputType = "string"; - this.args = [ - { - "name": "Display total", - "type": "boolean", - "value": "Extract.DISPLAY_TOTAL" - } - ]; - } - - /** - * @param {string} input - * @param {Object[]} args - * @returns {string} - */ - run(input, args) { - const displayTotal = args[0]; - return search(input, DOMAIN_REGEX, null, displayTotal); - } - -} - -export default ExtractDomains;