Skip to content

Commit 98fae07

Browse files
authored
Merge pull request #40 from KSP2Community/dev
0.11.1 Hotfix
2 parents 40515c0 + 1070fae commit 98fae07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin_template/swinfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Patch Manager",
66
"description": "A mod for generic patching needs similar to KSP 1's Module Manager.",
77
"source": "https://github.com/KSP2Community/PatchManager",
8-
"version": "0.11.0",
8+
"version": "0.11.1",
99
"version_check": "https://raw.githubusercontent.com/KSP2Community/PatchManager/main/plugin_template/swinfo.json",
1010
"ksp2_version": {
1111
"min": "0.2.0",

src/PatchManager.SassyPatching/Utility/Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static Coordinate GetCoordinate(this ParserRuleContext @this) =>
2020
new(@this.Start.TokenSource.SourceName, @this.Start.Line, @this.Start.Column);
2121

2222
public static bool MatchesPattern(this string @this, string pattern) =>
23-
Regex.IsMatch(@this, pattern.Replace("*", ".*").Replace("?", ".?"));
23+
Regex.IsMatch(@this, $"^{pattern.Replace("*", ".*").Replace("?", ".?")}$");
2424

2525
public static string Escape(this string @this) => JsonConvert.ToString(@this);
2626

0 commit comments

Comments
 (0)