Browse Source

* Fix getdelimitedtext, quoting was wrong

michael 6 years ago
parent
commit
a0f2fb0a8f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl/classes.pas

+ 1 - 1
packages/rtl/classes.pas

@@ -1694,7 +1694,7 @@ begin
   For i:=0 to count-1 do
   For i:=0 to count-1 do
     begin
     begin
     S:=Strings[i];
     S:=Strings[i];
-    doQuote:=FAlwaysQuote or (TJSString(s).search(RE)=-1);
+    doQuote:=FAlwaysQuote or (TJSString(s).search(RE)<>-1);
     if DoQuote then
     if DoQuote then
       Result:=Result+QuoteString(S,QuoteChar)
       Result:=Result+QuoteString(S,QuoteChar)
     else
     else