Skip to content

Commit

Permalink
Combine regex in legacy backbone charts wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Sep 5, 2024
1 parent c34df82 commit bd4605b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/mvc/visualization/chart/components/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import Backbone from "backbone";
import { Visualization } from "mvc/visualization/visualization-model";
import Utils from "utils/utils";

const MATCH_GROUP = /^groups_([0-9]+)\|([\w]+)/;
const MATCH_TRACKS = /^tracks_([0-9]+)\|([\w]+)/;
const MATCH_GROUP = /^(groups|tracks)_([0-9]+)\|([\w]+)/;

export default Backbone.Model.extend({
defaults: {
Expand Down

0 comments on commit bd4605b

Please sign in to comment.