Skip to content
Permalink
Browse files

- leftovers

  • Loading branch information...
cozy1 committed Jun 6, 2019
1 parent a6a668c commit 3274d75349bd3a71d10d672ce713d05a476bd512

This file was deleted.

@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("7375af81")]
[assembly: AssemblyInformationalVersion("a6a668c9")]
[assembly: AssemblyConfiguration("")]
@@ -137,9 +137,10 @@ public AttributesHeader2014(string arrangementFileName, Arrangement arrangement,
EasyMastery = Math.Round((double)(NotesEasy / NotesHard), 9);
MediumMastery = Math.Round((double)(NotesMedium / NotesHard), 9);
Metronome = arrangement.Metronome == Sng.Metronome.None ? null : (int?)arrangement.Metronome;

// TODO: monitor this change
// Representative = Convert.ToInt32(!arrangement.BonusArr);
Representative = arrangement.ArrangementPropeties.Represent;

RouteMask = (int)arrangement.RouteMask;

ManifestFunctions.GetSongDifficulty(this, song2014);
@@ -67,7 +67,7 @@ public static string GetValidAcronym(this string value)
return string.Join(string.Empty, v.Select(s => s[0])).ToUpper();

value = value.ReplaceDiacritics();
value = value.StripNonAlpaNumeric();
value = value.StripNonAlphaNumeric();
return value;
}

@@ -171,11 +171,11 @@ public static string GetValidKey(this string value, string songTitle = "", bool
if (String.IsNullOrEmpty(value))
return String.Empty;

value = value.StripNonAlpaNumeric();
value = value.StripNonAlphaNumeric();

// CRITICAL: prevents RS1 in game hanging after tuning
// check if same, if so then add 'Song' to make key unique, skip check if isTone
if (value == songTitle.StripNonAlpaNumeric() && !isTone)
if (value == songTitle.StripNonAlphaNumeric() && !isTone)
value = "Song" + value;

// limit max Key length to 30
@@ -636,9 +636,13 @@ public static string StripLeadingSpecialCharacters(this string value)
return result;
}

public static string StripNonAlpaNumeric(this string value)
/// <summary>
/// removes all non alphanumeric and all white space
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public static string StripNonAlphaNumeric(this string value)
{
// removes all non alphanumeric and all white space
Regex rgx = new Regex("[^a-zA-Z0-9_]+");
var result = rgx.Replace(value, "");
return result;
@@ -27,5 +27,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("7375af81")]
[assembly: AssemblyInformationalVersion("a6a668c9")]
[assembly: AssemblyConfiguration("")]
@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("7375af81")]
[assembly: AssemblyInformationalVersion("a6a668c9")]
[assembly: AssemblyConfiguration("")]
@@ -1,3 +1,3 @@
2.9.2.0
7375af81
a6a668c9

0 comments on commit 3274d75

Please sign in to comment.
You can’t perform that action at this time.