mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-22 03:37:25 +08:00
Merge branch 'dev' of https://github.com/SzymonSel/Orchard into dev
Conflicts: src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs
This commit is contained in:
@@ -358,8 +358,8 @@ namespace Orchard.ContentTypes.Services {
|
||||
}
|
||||
|
||||
private static string VersionName(string name) {
|
||||
int version;
|
||||
var substring = Regex.Match(name, @"\d+$").Value;
|
||||
int version;
|
||||
|
||||
if (int.TryParse(substring, out version)) {
|
||||
name = name.Remove(name.Length - substring.Length);
|
||||
|
Reference in New Issue
Block a user