Skip to content

Commit

Permalink
changing description and taking out unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
rootware committed Jul 28, 2022
1 parent 9592bda commit 504c0da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
15 changes: 0 additions & 15 deletions commonregex_improved.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,6 @@
"git_repos": git_repo
}

def find_all(textchunk: str) -> list:
"""Function to identify all matching patterns in a text chunk
Args:
textchunk (str) : textchunk to be supplied to identify pattern
Returns:
list (list): list of sensitive data found in lines
"""
matched_list = []
for line in textchunk.split():
for value in regex_map.values():
if re.search(value, line):
pattern_string = re.search(value, line)
sensitive_string = pattern_string.group(0)
matched_list.append(sensitive_string)
return matched_list

def match(text: str, regex: str) -> list:
"""Function to match using regex findall function
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "commonregex-improved"
version = "0.0.4"
description = "Python cli tool to redact sensitive data"
version = "0.0.5"
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."
authors = ["brootware <brootware@outlook.com>"]
license = "MIT"
readme = "README.md"
Expand Down

0 comments on commit 504c0da

Please sign in to comment.