提交 144a4e6d 编写于 作者: E Etiennef 提交者: Guillaume Chau

fix: Change REGEX_RE to allow use of / in filters (#886)

上级 c890b62c
......@@ -4,7 +4,7 @@ import SharedData from 'src/shared-data'
const ENABLED_KEY = 'EVENTS_ENABLED'
const enabled = storage.get(ENABLED_KEY)
const REGEX_RE = /^\/(.*?)\/(\w*)/
const REGEX_RE = /^\/((?:(?:.*?)(?:\\\/)?)*?)\/(\w*)/
let uid = 0
......
......@@ -3,7 +3,7 @@ import * as actions from './actions'
import { snapshotsCache } from './cache'
import SharedData from 'src/shared-data'
const REGEX_RE = /^\/(.*?)\/(\w*)/
const REGEX_RE = /^\/((?:(?:.*?)(?:\\\/)?)*?)\/(\w*)/
const ANY_RE = new RegExp('.*', 'i')
let uid = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册