浏览代码

regex bug

hmt 3 年之前
父节点
当前提交
941bf43113
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bbb.ts

+ 1 - 1
bbb.ts

@@ -12,7 +12,7 @@ export class BBB {
     this.call = req.params.call
     this.checksum_incoming = req.query.checksum
     this.query = req._parsedUrl?.query || ""
-    this.params = this.query.replace(/[?|&]checksum.*$/, '')
+    this.params = this.query.replace(/[?&]?checksum.*$/, '')
     this.meeting_id = req.query.meetingID
     this.url = req.originalUrl
     console.log(`New call to ${this.call}`)