mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-10 20:38:32 +03:00
deep regex non-greedy
This commit is contained in:
@@ -17,7 +17,7 @@ export default (data) => {
|
||||
const output = []
|
||||
|
||||
// create a structure to indicate which columns needs to be aggregated
|
||||
const endsWithNumber = new RegExp('(.*)[0-9]+$')
|
||||
const endsWithNumber = new RegExp('(.*?)[0-9]+$')
|
||||
const structure = {
|
||||
__flat: []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user