pseek 2.3.1__tar.gz → 2.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pseek
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Pseek is a Python library to search files, folders, and text
5
5
  Author-email: Arian <ariannasiri86@gmail.com>
6
6
  License-Expression: MIT
@@ -133,7 +133,7 @@ class Search:
133
133
  file_label = str(file_path.resolve()) if self.full_path else str(file_path)
134
134
 
135
135
  # Avoid searching through the entire file content if the fast-content flag is True
136
- if self.no_content:
136
+ if self.no_content and not self.expr:
137
137
  matches.add(click.style(file_label, fg='cyan'))
138
138
  return
139
139
 
@@ -151,6 +151,9 @@ class Search:
151
151
 
152
152
  # If the pattern matches in the decoded line
153
153
  if pattern.evaluate(line_decoded):
154
+ if self.no_content and self.expr:
155
+ matches.add(click.style(file_label, fg='cyan'))
156
+ return
154
157
  count = pattern.count_matches(line_decoded) if isinstance(pattern, TermNode) else 0
155
158
  # Highlight the matching parts in green
156
159
  highlighted = highlight_text_safe(pattern, line_decoded)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pseek
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Pseek is a Python library to search files, folders, and text
5
5
  Author-email: Arian <ariannasiri86@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pseek"
7
- version = "2.3.1"
7
+ version = "2.3.2"
8
8
  description = "Pseek is a Python library to search files, folders, and text"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes