Skip to content

Commit 5d2e8e2

Browse files
author
James Brundage
committed
PipeScript.PipeScriptType: Adding 'ExtensionScript' categorization (Fixes #313)
1 parent 17b5bb0 commit 5d2e8e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Types/PipeScript/get_PipeScriptType.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ if ($this.Source -match '\.psx\.ps1{0,1}$') {
44
elseif ($this.Source -match "\.ps1{0,1}\.(?<ext>[^.]+$)") {
55
"SourceGenerator"
66
}
7-
elseif (($this.Source -match '\.[^\.\\/]+\.ps1$') -or ($this.Source -match 'build\.ps1$')) {
7+
elseif ($this.Source -match '(?<=(?>^|\.))build\.ps1$') {
88
"BuildScript"
99
}
10+
elseif (($this.Source -match '\.[^\.\\/]+\.ps1$')) {
11+
"ExtensionScript"
12+
}
1013
elseif ($this.Source) {
1114
"PipeScriptFile"
1215
}

0 commit comments

Comments
 (0)