Skip to content

Commit 8dfa0c0

Browse files
authored
Fix getSchema by splitting on all whitespace (#677)
1 parent e95209c commit 8dfa0c0

File tree

1 file changed

+1
-1
lines changed
  • android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/ImportExportJson

1 file changed

+1
-1
lines changed

android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/ImportExportJson/ExportToJson.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private ArrayList<JsonColumn> getSchema(String sqlStmt) throws Exception {
342342
// first word as key
343343
for (String s : sch) {
344344
String sc = s.replaceAll("\n", "").trim();
345-
String[] row = sc.trim().split(" ", 2);
345+
String[] row = sc.trim().split("\\s+", 2);
346346
JsonColumn jsonRow = new JsonColumn();
347347
String uppercasedValue = row[0].toUpperCase(); // Define uppercasedValue
348348
int oPar;

0 commit comments

Comments
 (0)