Skip to content

Commit

Permalink
Merge branch 'alitas-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshClose committed Jan 24, 2024
2 parents c3b50cd + 2aaad88 commit 1af75c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CsvHelper/Configuration/ConfigurationFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ public static bool ShouldQuote(ShouldQuoteArgs args)

var shouldQuote = !string.IsNullOrEmpty(args.Field) &&
(
args.Field.Contains(config.Quote) // Contains quote
|| args.Field[0] == ' ' // Starts with a space
|| args.Field[args.Field.Length - 1] == ' ' // Ends with a space
|| (config.Delimiter.Length > 0 && args.Field.Contains(config.Delimiter)) // Contains delimiter
args.Field[0] == ' ' // Starts with a space
|| args.Field[^1] == ' ' // Ends with a space

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Predefined type 'System.Index' is not defined or imported

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Missing compiler required member 'System.Index..ctor'

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Predefined type 'System.Index' is not defined or imported

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Missing compiler required member 'System.Index..ctor'

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Predefined type 'System.Index' is not defined or imported

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Missing compiler required member 'System.Index..ctor'

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Predefined type 'System.Index' is not defined or imported

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Missing compiler required member 'System.Index..ctor'

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Predefined type 'System.Index' is not defined or imported

Check failure on line 106 in src/CsvHelper/Configuration/ConfigurationFunctions.cs

View workflow job for this annotation

GitHub Actions / ci

Missing compiler required member 'System.Index..ctor'
|| args.Field.Contains(config.Quote) // Contains quote
|| !config.IsNewLineSet && args.Field.IndexOfAny(lineEndingChars) > -1 // Contains line ending characters
|| config.IsNewLineSet && args.Field.Contains(config.NewLine) // Contains newline
|| (config.Delimiter.Length > 0 && args.Field.Contains(config.Delimiter)) // Contains delimiter
);

return shouldQuote;
Expand Down

0 comments on commit 1af75c6

Please sign in to comment.