Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -332,14 +332,14 @@ namespace Server.Commands
|
|||
int start = text.IndexOf( '(' );
|
||||
|
||||
if ( start < 0 )
|
||||
throw new FormatException( String.Format( "Input string not correctly formatted ('{0}')", text ) );
|
||||
throw new FormatException($"Input string not correctly formatted ('{text}')");
|
||||
|
||||
m_Title = text.Substring( 0, start ).Trim();
|
||||
|
||||
int end = text.IndexOf( ')', ++start );
|
||||
|
||||
if ( end < start )
|
||||
throw new FormatException( String.Format( "Input string not correctly formatted ('{0}')", text ) );
|
||||
throw new FormatException($"Input string not correctly formatted ('{text}')");
|
||||
|
||||
text = text.Substring( start, end-start );
|
||||
string[] split = text.Split( ';' );
|
||||
|
|
@ -392,7 +392,7 @@ namespace Server.Commands
|
|||
}
|
||||
|
||||
if ( index >= input.Length )
|
||||
throw new FormatException( String.Format( "Input string not correctly formatted ('{0}')", input ) );
|
||||
throw new FormatException($"Input string not correctly formatted ('{input}')");
|
||||
|
||||
m_Indentation = index;
|
||||
m_Text = input.Substring( index );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue