Merge branch 'rel/vsmac15.7' into dev
This commit is contained in:
commit
2eb9d4d783
|
|
@ -26,8 +26,10 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
||||||
|
|
||||||
public static bool IsNewLine(string value)
|
public static bool IsNewLine(string value)
|
||||||
{
|
{
|
||||||
|
// We want to handle both LF and CRLF regardless of the platform.
|
||||||
|
// We explicitly check for CRLF and IsNewLine() should return true for LF.
|
||||||
return (value.Length == 1 && (IsNewLine(value[0]))) ||
|
return (value.Length == 1 && (IsNewLine(value[0]))) ||
|
||||||
(string.Equals(value, Environment.NewLine, StringComparison.Ordinal));
|
(string.Equals(value, "\r\n", StringComparison.Ordinal));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsIdentifier(string value)
|
public static bool IsIdentifier(string value)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue