Skip to content

Commit 504c0da

Browse files
author
rootware
committed
changing description and taking out unused function
1 parent 9592bda commit 504c0da

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

commonregex_improved.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,6 @@
6161
"git_repos": git_repo
6262
}
6363

64-
def find_all(textchunk: str) -> list:
65-
"""Function to identify all matching patterns in a text chunk
66-
Args:
67-
textchunk (str) : textchunk to be supplied to identify pattern
68-
Returns:
69-
list (list): list of sensitive data found in lines
70-
"""
71-
matched_list = []
72-
for line in textchunk.split():
73-
for value in regex_map.values():
74-
if re.search(value, line):
75-
pattern_string = re.search(value, line)
76-
sensitive_string = pattern_string.group(0)
77-
matched_list.append(sensitive_string)
78-
return matched_list
7964

8065
def match(text: str, regex: str) -> list:
8166
"""Function to match using regex findall function

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "commonregex-improved"
7-
version = "0.0.4"
8-
description = "Python cli tool to redact sensitive data"
7+
version = "0.0.5"
8+
description = "An improved version of original commonregex. Find all dates, times, emails, phone numbers, links, emails, ip addresses, prices, bitcoin address, and more in a string."
99
authors = ["brootware <brootware@outlook.com>"]
1010
license = "MIT"
1111
readme = "README.md"

0 commit comments

Comments
 (0)