Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
randoman committed Dec 23, 2021
2 parents 97e68e4 + 946e217 commit a8d154a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XUnity.AutoTranslator.Plugin.Core/RegexTranslation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public RegexTranslation( string key, string value )
{
startIdx++;
var endIdx = key.LastIndexOf( '"' );
if( endIdx != startIdx )
if( endIdx != startIdx - 1 )
{
key = key.Substring( startIdx, endIdx - startIdx );
}
Expand All @@ -46,7 +46,7 @@ public RegexTranslation( string key, string value )
{
startIdx++;
var endIdx = value.LastIndexOf( '"' );
if( endIdx != startIdx )
if( endIdx != startIdx - 1)
{
value = value.Substring( startIdx, endIdx - startIdx );
}
Expand Down

0 comments on commit a8d154a

Please sign in to comment.