Skip to content

Commit

Permalink
Language Weaver Provider 2.0.5.0 - SDLCOM-6267: Updated the XliffConv…
Browse files Browse the repository at this point in the history
…erter, Set CheckCharacters = false in XmlWriterSettings to allow serialization of content with unusual or escape characters.
  • Loading branch information
aflorescu579774 committed Dec 20, 2024
1 parent e75ddf6 commit ddd4fcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LanguageWeaverProvider/XliffConverter/Converter/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public static Xliff ParseXliffString(string text)
return null;
}

var sourceText = Regex.Matches(text, SourceTextRegex, RegexOptions.Singleline);
text = text.Replace("\\r", "").Replace("\\n", "");
var sourceText = Regex.Matches(text, SourceTextRegex, RegexOptions.Singleline);
text = Regex.Replace(text, SourceTextRegex, EmptySourceTextRegex, RegexOptions.Singleline);

var targetText = Regex.Matches(text, TargetTextRegex, RegexOptions.Singleline);
Expand Down

0 comments on commit ddd4fcb

Please sign in to comment.