Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Optimized splitNested
  • Loading branch information
Avasam committed May 20, 2021
commit 7abd06033c7c38a56d13965494bc050f4dcb2458
8 changes: 3 additions & 5 deletions packages/react-bootstrap-table2/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
import _ from 'underscore';

function splitNested(str) {
return [str]
.join('.')
.replace(/\[/g, '.')
.replace(/\]/g, '')
.split('.');
return str
.replace(']', '')
.split(/\[\./);
}

function contains(list, value) {
Expand Down