Skip to content

Commit 63467ab

Browse files
StartAutomatingStartAutomating
authored andcommitted
PipeScript.PipeScriptType: Adding 'ExtensionScript' categorization (Fixes #313)
1 parent 5d2e8e2 commit 63467ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PipeScript.types.ps1xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,9 +1161,12 @@ $this.Parent.GetType().Name -in 'AssignmentStatementAST', 'HashtableAST'
11611161
elseif ($this.Source -match "\.ps1{0,1}\.(?<ext>[^.]+$)") {
11621162
"SourceGenerator"
11631163
}
1164-
elseif (($this.Source -match '\.[^\.\\/]+\.ps1$') -or ($this.Source -match 'build\.ps1$')) {
1164+
elseif ($this.Source -match '(?<=(?>^|\.))build\.ps1$') {
11651165
"BuildScript"
11661166
}
1167+
elseif (($this.Source -match '\.[^\.\\/]+\.ps1$')) {
1168+
"ExtensionScript"
1169+
}
11671170
elseif ($this.Source) {
11681171
"PipeScriptFile"
11691172
}

0 commit comments

Comments
 (0)