Skip to content

Commit 6e51b73

Browse files
Fix class name regex in Production snippets (#1241)
--------- Co-authored-by: John Murray <[email protected]>
1 parent 4a479b3 commit 6e51b73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: snippets/objectscript-class.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"prefix": ["Production","Interoperability","ClassProduction"],
166166
"body": [
167167
"/// ${1:Description}",
168-
"Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Production",
168+
"Class ${2:${TM_DIRECTORY/^.+[\\/\\\\](.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Production",
169169
"{",
170170
"",
171171
"XData ProductionDefinition",
@@ -183,7 +183,7 @@
183183
"prefix": ["Request","Interoperability","ClassRequest"],
184184
"body": [
185185
"/// ${1:Description}",
186-
"Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Request",
186+
"Class ${2:${TM_DIRECTORY/^.+[\\/\\\\](.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Request",
187187
"{",
188188
"$0",
189189
"}"
@@ -194,7 +194,7 @@
194194
"prefix": ["Response","Interoperability","ClassResponse"],
195195
"body": [
196196
"/// ${1:Description}",
197-
"Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Response",
197+
"Class ${2:${TM_DIRECTORY/^.+[\\/\\\\](.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Response",
198198
"{",
199199
"$0",
200200
"}"

0 commit comments

Comments
 (0)