Skip to content

Commit e0aca6c

Browse files
author
James Brundage
committed
Updating RegexLiteral Transpiler (adding help) (#77)
1 parent 5fc3327 commit e0aca6c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Transpilers/Syntax/RegexLiteral.psx.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<#
2+
.SYNOPSIS
3+
Regex Literal Transpiler
4+
.DESCRIPTION
5+
Allows for Regex Literals within PipeScript.
6+
7+
Regex Literals are strings enclosed within slashes.
8+
9+
The ending slash may be followed by ```[Text.RegularExpressions.RegexOptions]```.
210
.Example
311
{
412
'/[a|b]/'
@@ -8,8 +16,7 @@
816
"/[$a|$b]/"
917
} | .>PipeScript
1018
.EXAMPLE
11-
{
12-
@'
19+
{@'
1320
/
1421
# Heredocs Regex literals will have IgnorePatternWhitespace by default, which allows comments
1522
^ # Match the string start

0 commit comments

Comments
 (0)