We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8db73fe commit b4b40b8Copy full SHA for b4b40b8
1 file changed
SobaScript.Z.Ext/NuGet/GetNuTool.cs
@@ -60,7 +60,7 @@ public void Raw(string data)
60
61
data = Regex.Replace
62
(
63
- data,
+ FixOldRev(ref data),
64
@"(?'left'
65
\/p(?:roperty)?
66
\s*?:\s*?
@@ -115,6 +115,14 @@ private string UseGnt(string src)
115
return src;
116
}
117
118
+ private string FixOldRev(ref string str) => Regex.Replace
119
+ (
120
+ str,
121
+ @"^\s*gnt\.(?:core|bat|cmd)(\s|\/)",
122
+ "$1",
123
+ RegexOptions.IgnoreCase
124
+ );
125
+
126
private string Locate(string item = null)
127
{
128
if(item == null) {
0 commit comments