Skip to content

Commit d8c81e4

Browse files
committed
Fix issue with properties containing spaces
The regex was wrong and didn't match until the first whitespace for the property name.
1 parent 9abb4c4 commit d8c81e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SmallSharp/EmitTargets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace SmallSharp;
1111
public class EmitTargets : Task
1212
{
1313
static readonly Regex packageExpr = new(@"^#:package\s+([^@]+)@(.+)$");
14-
static readonly Regex propertyExpr = new(@"^#:property\s+([^@]+)\s+(.+)$");
14+
static readonly Regex propertyExpr = new(@"^#:property\s+([^\s]+)\s+(.+)$");
1515

1616
[Required]
1717
public ITaskItem? StartupFile { get; set; }

0 commit comments

Comments
 (0)