You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
# strip blank lines, lines starting with #, and verbose/debug statements
32
-
strippedCode="\n".join([lineforlineinstrippedCode.split('\n') if ((line.strip() !='') and (notline.strip().startswith("#")) and (notline.strip().lower().startswith("write-verbose ")) and (notline.strip().lower().startswith("write-debug ")) )])
33
-
returnstrippedCode
18
+
"""
19
+
Strip block comments, line comments, empty lines, verbose statements,
20
+
and debug statements from a PowerShell source file.
21
+
22
+
If the function_name paramater is passed, replace the main powershell function name with it
# strip blank lines, lines starting with #, and verbose/debug statements
32
+
strippedCode="\n".join([lineforlineinstrippedCode.split('\n') if ((line.strip() !='') and (notline.strip().startswith("#")) and (notline.strip().lower().startswith("write-verbose ")) and (notline.strip().lower().startswith("write-debug ")) )])
0 commit comments