Skip to content

Commit

Permalink
Regex HahaBall
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed May 29, 2021
1 parent 264bed1 commit 111ca42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions BeatSaberNoUpdate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>bsskip.ico</ApplicationIcon>
<Authors>Kinsi55</Authors>
<Version>1.0.1</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
2 changes: 1 addition & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void button2_Click(object sender, EventArgs e) {
if(checkBox1.Checked)
SetKv(ref acf, "AutoUpdateBehavior", "1");

acf = Regex.Replace(acf, "(\"620981\".*?\"manifest\".*)\"[0-9]{19}\"", $"$1\"{textbox_manifest.Text}\"", RegexOptions.Singleline | RegexOptions.IgnoreCase);
acf = Regex.Replace(acf, "(\"620981\".*?\"manifest\"\\s*?)\"[0-9]{19}\"", $"$1\"{textbox_manifest.Text}\"", RegexOptions.Singleline | RegexOptions.IgnoreCase);

File.WriteAllText(p, acf);

Expand Down

0 comments on commit 111ca42

Please sign in to comment.