Commit 9d1e8b3b authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Skip email addresses when expanding paths

parent 99dc608b
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -86,6 +86,10 @@ def expandPaths(lines:list[str], currentPath:str, childPath:str) -> list[str]:
			if linkPath.startswith(('http://', 'https://', '/')):
			if linkPath.startswith(('http://', 'https://', '/')):
				continue
				continue


			# Skip email addresses
			if "@" in linkPath:
				continue
			
			# Construct the new path by adding addedPath to the original path
			# Construct the new path by adding addedPath to the original path
			newLinkPath = linkPath[2:] if linkPath.startswith('./') else linkPath
			newLinkPath = linkPath[2:] if linkPath.startswith('./') else linkPath