소스 검색

+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