瀏覽代碼

+jwtGQLAnon for anon, query recursive walker for object id and regexp

Ivan Asmer 5 年之前
父節點
當前提交
19ccb54628
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      expand.js

+ 1 - 1
expand.js

@@ -80,7 +80,7 @@ function mmExpandSchema(gqlSchema){
                                 if (val && typeof val === 'string' && val.startsWith('/') && val.endsWith('/')){
                                     try {
                                         console.log('regexp', val)
-                                        return new Regexp(val.slice(1,-1))
+                                        return new Regexp(val)
                                     }
                                     catch (e){
                                         return val