Skip to content

Commit 144a4e6

Browse files
EtiennefAkryum
authored andcommitted
fix: Change REGEX_RE to allow use of / in filters (#886)
1 parent c890b62 commit 144a4e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/devtools/views/events/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import SharedData from 'src/shared-data'
44

55
const ENABLED_KEY = 'EVENTS_ENABLED'
66
const enabled = storage.get(ENABLED_KEY)
7-
const REGEX_RE = /^\/(.*?)\/(\w*)/
7+
const REGEX_RE = /^\/((?:(?:.*?)(?:\\\/)?)*?)\/(\w*)/
88

99
let uid = 0
1010

src/devtools/views/vuex/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as actions from './actions'
33
import { snapshotsCache } from './cache'
44
import SharedData from 'src/shared-data'
55

6-
const REGEX_RE = /^\/(.*?)\/(\w*)/
6+
const REGEX_RE = /^\/((?:(?:.*?)(?:\\\/)?)*?)\/(\w*)/
77
const ANY_RE = new RegExp('.*', 'i')
88

99
let uid = 0

0 commit comments

Comments
 (0)