deep regex non-greedy

This commit is contained in:
Lachlan Kermode
2019-01-04 12:16:58 +00:00
parent 11fec88030
commit a124d2c9bf
2 changed files with 1 additions and 13 deletions

View File

@@ -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: []
}