mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2026-09-18 15:51:36 -04:00
FIX: Only update table portion from raw post
This commit is contained in:
@@ -85,3 +85,7 @@ export function arrayToTable(array, columns, alignment = "center") {
|
||||
// Return table
|
||||
return table;
|
||||
}
|
||||
|
||||
export function findTableRegex() {
|
||||
return /((\r?){2}|^)([^\r\n]*\|[^\r\n]*(\r?\n)?)+(?=(\r?\n){2}|$)/gm;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user