File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 }
3434 {
3535 let r =
36- / ^ \/ (?: \x6f r g \/ (?< org > [ ^ / ] + ) \/ (?: \x72 o l e s (?: ( ) $ | \/ (?< role > [ ^ / ] + ) ( ) $ ) | \x6d e m b e r s (?: ( ) $ | \/ (?< member > [ ^ / ] + ) ( ) $ ) | \x64 o m a i n s (?: ( ) $ | \/ (?< domain > [ ^ / ] + ) ( ) $ ) | \x70 r o j e c t s (?: ( ) $ | \/ (?< project > [ ^ / ] + ) \/ (?: \x74 a s k s (?: ( ) $ | \/ (?: \x61 t t a c h m e n t s ( ) $ | \x74 (?: \x61 g s ( ) $ | \x69 m e \x2d e n t r i e s (?: ( ) $ | \/ (?< entry > [ ^ / ] + ) ( ) $ ) ) ) ) | \x6d e m b e r s ( ) $ ) ) | \x74 a s k s \/ (?< task > [ ^ / ] + ) \/ (?: \x73 t a t u s ( ) $ | \x61 (?: \x74 t a c h m e n t s ( ) $ | \x73 s i g n ( ) $ ) | \x63 o m m e n t s ( ) $ | \x74 (?: \x61 g s ( ) $ | \x69 m e \x2d e n t r i e s (?: ( ) $ | \/ (?< entry > [ ^ / ] + ) \/ s t o p ( ) $ ) ) ) | \x62 i l l i n g \/ (?: \x69 n v o i c e s \/ (?< invoice > [ ^ / ] + ) ( ) $ | \x73 u b s c r i p t i o n (?: ( ) $ | \/ c a n c e l ( ) $ ) | \x70 a y m e n t \x2d m e t h o d s ( ) $ ) | \x61 p i \x2d k e y s ( ) $ | \x77 e b h o o k s ( ) $ ) | \x75 s e r (?: \/ n o t i f i c a t i o n s \/ (?< notification > [ ^ / ] + ) \/ r e a d ( ) $ | \/ (?< user > [ ^ / ] + ) (?: ( ) $ | \/ i n v i t e s (?: ( ) $ | \/ (?< invite > [ ^ / ] + ) \/ (?: \x72 e s e n d ( ) $ | \x61 c c e p t ( ) $ ) ) ) ) ) $ / . exec (
36+ / ^ \/ (?: \x6f r g \/ (?< org > [ ^ / ] + ) \/ (?: \x72 o l e s (?: ( ) | \/ (?< role > [ ^ / ] + ) ( ) ) | \x6d e m b e r s (?: ( ) | \/ (?< member > [ ^ / ] + ) ( ) ) | \x64 o m a i n s (?: ( ) | \/ (?< domain > [ ^ / ] + ) ( ) ) | \x70 r o j e c t s (?: ( ) | \/ (?< project > [ ^ / ] + ) \/ (?: \x74 a s k s (?: ( ) | \/ (?: \x61 t t a c h m e n t s ( ) | \x74 (?: \x61 g s ( ) | \x69 m e \x2d e n t r i e s (?: ( ) | \/ (?< entry > [ ^ / ] + ) ( ) ) ) ) ) | \x6d e m b e r s ( ) ) ) | \x74 a s k s \/ (?< task > [ ^ / ] + ) \/ (?: \x73 t a t u s ( ) | \x61 (?: \x74 t a c h m e n t s ( ) | \x73 s i g n ( ) ) | \x63 o m m e n t s ( ) | \x74 (?: \x61 g s ( ) | \x69 m e \x2d e n t r i e s (?: ( ) | \/ (?< entry > [ ^ / ] + ) \/ s t o p ( ) ) ) ) | \x62 i l l i n g \/ (?: \x69 n v o i c e s \/ (?< invoice > [ ^ / ] + ) ( ) | \x73 u b s c r i p t i o n (?: ( ) | \/ c a n c e l ( ) ) | \x70 a y m e n t \x2d m e t h o d s ( ) ) | \x61 p i \x2d k e y s ( ) | \x77 e b h o o k s ( ) ) | \x75 s e r (?: \/ n o t i f i c a t i o n s \/ (?< notification > [ ^ / ] + ) \/ r e a d ( ) | \/ (?< user > [ ^ / ] + ) (?: ( ) | \/ i n v i t e s (?: ( ) | \/ (?< invite > [ ^ / ] + ) \/ (?: \x72 e s e n d ( ) | \x61 c c e p t ( ) ) ) ) ) ) $ / . exec (
3737 p ,
3838 ) ;
3939 if ( r !== null ) {
134134 }
135135 {
136136 let r =
137- / ^ \/ (?: \x6f r g \/ (?< org > [ ^ / ] + ) (?: ( ) $ | \/ (?: \x72 o l e s ( ) $ | \x6d e m b e r s ( ) $ | \x64 o m a i n s ( ) $ | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) (?: ( ) $ | \/ (?: \x61 c t i v i t y ( ) $ | \x6d e m b e r s ( ) $ | \x74 a s k s (?: ( ) $ | \/ (?: \x61 t t a c h m e n t s ( ) $ | \x74 i m e \x2d e n t r i e s ( ) $ ) ) ) ) | \x74 a s k s (?: ( ) $ | \/ (?< task > [ ^ / ] + ) (?: ( ) $ | \/ (?: \x74 i m e \x2d e n t r i e s ( ) $ | \x63 o m m e n t s ( ) $ | \x61 t t a c h m e n t s ( ) $ ) ) ) | \x62 i l l i n g \/ (?: \x73 u b s c r i p t i o n ( ) $ | \x70 (?: \x61 y m e n t \x2d m e t h o d s ( ) $ | \x6c a n s ( ) $ ) | \x69 n v o i c e s (?: ( ) $ | \/ (?< invoice > [ ^ / ] + ) ( ) $ ) ) | \x61 p i \x2d k e y s ( ) $ | \x77 e b h o o k s (?: ( ) $ | \/ (?< hook > [ ^ / ] + ) \/ d e l i v e r i e s (?: ( ) $ | \/ (?< delivery > [ ^ / ] + ) ( ) $ ) ) ) ) | \x75 s e r \/ (?< user > [ ^ / ] + ) (?: ( ) $ | \/ (?: \x69 n v i t e s \/ (?< invite > [ ^ / ] + ) ( ) $ | \x6e o t i f i c a t i o n s ( ) $ ) ) | \x66 i l e s \/ (?< file > .+ ) ( ) $ | \x61 d m i n \/ r e p o r t s \/ (?: \x75 s e r s \/ (?< user > [ ^ / ] + ) \/ a c t i v i t y ( ) $ | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) \/ s u m m a r y ( ) $ ) ) $ / . exec (
137+ / ^ \/ (?: \x6f r g \/ (?< org > [ ^ / ] + ) (?: ( ) | \/ (?: \x72 o l e s ( ) | \x6d e m b e r s ( ) | \x64 o m a i n s ( ) | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) (?: ( ) | \/ (?: \x61 c t i v i t y ( ) | \x6d e m b e r s ( ) | \x74 a s k s (?: ( ) | \/ (?: \x61 t t a c h m e n t s ( ) | \x74 i m e \x2d e n t r i e s ( ) ) ) ) ) | \x74 a s k s (?: ( ) | \/ (?< task > [ ^ / ] + ) (?: ( ) | \/ (?: \x74 i m e \x2d e n t r i e s ( ) | \x63 o m m e n t s ( ) | \x61 t t a c h m e n t s ( ) ) ) ) | \x62 i l l i n g \/ (?: \x73 u b s c r i p t i o n ( ) | \x70 (?: \x61 y m e n t \x2d m e t h o d s ( ) | \x6c a n s ( ) ) | \x69 n v o i c e s (?: ( ) | \/ (?< invoice > [ ^ / ] + ) ( ) ) ) | \x61 p i \x2d k e y s ( ) | \x77 e b h o o k s (?: ( ) | \/ (?< hook > [ ^ / ] + ) \/ d e l i v e r i e s (?: ( ) | \/ (?< delivery > [ ^ / ] + ) ( ) ) ) ) ) | \x75 s e r \/ (?< user > [ ^ / ] + ) (?: ( ) | \/ (?: \x69 n v i t e s \/ (?< invite > [ ^ / ] + ) ( ) | \x6e o t i f i c a t i o n s ( ) ) ) | \x66 i l e s \/ (?< file > .+ ) ( ) | \x61 d m i n \/ r e p o r t s \/ (?: \x75 s e r s \/ (?< user > [ ^ / ] + ) \/ a c t i v i t y ( ) | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) \/ s u m m a r y ( ) ) ) $ / . exec (
138138 p ,
139139 ) ;
140140 if ( r !== null ) {
207207 }
208208 {
209209 let r =
210- / ^ \/ (?: \x73 e a r c h \/ f i l t e r s \/ (?< filter > [ ^ / ] + ) ( ) $ | \x6f r g \/ (?< org > [ ^ / ] + ) (?: ( ) $ | \/ (?: \x74 a s k s \/ (?< task > [ ^ / ] + ) ( ) $ | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) ( ) $ | \x77 e b h o o k s \/ (?< hook > [ ^ / ] + ) ( ) $ ) ) | \x74 a g s \/ (?< tag > [ ^ / ] + ) ( ) $ ) $ / . exec (
210+ / ^ \/ (?: \x73 e a r c h \/ f i l t e r s \/ (?< filter > [ ^ / ] + ) ( ) | \x6f r g \/ (?< org > [ ^ / ] + ) (?: ( ) | \/ (?: \x74 a s k s \/ (?< task > [ ^ / ] + ) ( ) | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) ( ) | \x77 e b h o o k s \/ (?< hook > [ ^ / ] + ) ( ) ) ) | \x74 a g s \/ (?< tag > [ ^ / ] + ) ( ) ) $ / . exec (
211211 p ,
212212 ) ;
213213 if ( r !== null ) {
229229 } else if ( m === 'DELETE' ) {
230230 {
231231 let r =
232- / ^ \/ (?: \x6f r g \/ (?< org > [ ^ / ] + ) (?: ( ) $ | \/ (?: \x74 a s k s \/ (?< task > [ ^ / ] + ) (?: ( ) $ | \/ (?: \x66 i e l d s \/ (?< field > [ ^ / ] + ) ( ) $ | \x74 a g s ( ) $ ) ) | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) (?: ( ) $ | \/ t a s k s \/ (?: \x66 i e l d s \/ (?< field > [ ^ / ] + ) ( ) $ | \x74 a g s ( ) $ ) ) | \x62 i l l i n g \/ p a y m e n t \x2d m e t h o d s \/ (?< method > [ ^ / ] + ) ( ) $ | \x61 p i \x2d k e y s \/ (?< key > [ ^ / ] + ) ( ) $ | \x77 e b h o o k s \/ (?< hook > [ ^ / ] + ) ( ) $ ) ) | \x75 s e r \/ m e \/ s e s s i o n s \/ (?< session > [ ^ / ] + ) ( ) $ | \x66 i l e s \/ (?< file > .+ ) ( ) $ | \x73 e a r c h \/ f i l t e r s \/ (?< filter > [ ^ / ] + ) ( ) $ | \x74 a g s \/ (?< tag > [ ^ / ] + ) ( ) $ ) $ / . exec (
232+ / ^ \/ (?: \x6f r g \/ (?< org > [ ^ / ] + ) (?: ( ) | \/ (?: \x74 a s k s \/ (?< task > [ ^ / ] + ) (?: ( ) | \/ (?: \x66 i e l d s \/ (?< field > [ ^ / ] + ) ( ) | \x74 a g s ( ) ) ) | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) (?: ( ) | \/ t a s k s \/ (?: \x66 i e l d s \/ (?< field > [ ^ / ] + ) ( ) | \x74 a g s ( ) ) ) | \x62 i l l i n g \/ p a y m e n t \x2d m e t h o d s \/ (?< method > [ ^ / ] + ) ( ) | \x61 p i \x2d k e y s \/ (?< key > [ ^ / ] + ) ( ) | \x77 e b h o o k s \/ (?< hook > [ ^ / ] + ) ( ) ) ) | \x75 s e r \/ m e \/ s e s s i o n s \/ (?< session > [ ^ / ] + ) ( ) | \x66 i l e s \/ (?< file > .+ ) ( ) | \x73 e a r c h \/ f i l t e r s \/ (?< filter > [ ^ / ] + ) ( ) | \x74 a g s \/ (?< tag > [ ^ / ] + ) ( ) ) $ / . exec (
233233 p ,
234234 ) ;
235235 if ( r !== null ) {
267267 } else if ( m === 'PUT' ) {
268268 {
269269 let r =
270- / ^ \/ o r g \/ (?< org > [ ^ / ] + ) \/ (?: \x74 a s k s \/ (?< task > [ ^ / ] + ) \/ f i e l d s \/ (?< field > [ ^ / ] + ) ( ) $ | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) \/ t a s k s \/ f i e l d s \/ (?< field > [ ^ / ] + ) ( ) $ ) $ / . exec (
270+ / ^ \/ o r g \/ (?< org > [ ^ / ] + ) \/ (?: \x74 a s k s \/ (?< task > [ ^ / ] + ) \/ f i e l d s \/ (?< field > [ ^ / ] + ) ( ) | \x70 r o j e c t s \/ (?< project > [ ^ / ] + ) \/ t a s k s \/ f i e l d s \/ (?< field > [ ^ / ] + ) ( ) ) $ / . exec (
271271 p ,
272272 ) ;
273273 if ( r !== null ) {
Original file line number Diff line number Diff line change 1313 }
1414 {
1515 let r =
16- / ^ \/ (?: \x65 v e n t \/ (?< event > [ ^ / ] + ) (?: ( ) $ | \/ c o m m e n t s ( ) $ ) | \x75 s e r \/ l o o k u p \/ (?: \x65 m a i l \/ (?< email > [ ^ / ] + ) ( ) $ | \x75 s e r n a m e \/ (?< username > [ ^ / ] + ) ( ) $ ) | \x6d a p \/ (?< location > [ ^ / ] + ) \/ e v e n t s ( ) $ | \x73 t a t i c \/ (?< file > .+ ) ( ) $ ) $ / . exec (
16+ / ^ \/ (?: \x65 v e n t \/ (?< event > [ ^ / ] + ) (?: ( ) | \/ c o m m e n t s ( ) ) | \x75 s e r \/ l o o k u p \/ (?: \x65 m a i l \/ (?< email > [ ^ / ] + ) ( ) | \x75 s e r n a m e \/ (?< username > [ ^ / ] + ) ( ) ) | \x6d a p \/ (?< location > [ ^ / ] + ) \/ e v e n t s ( ) | \x73 t a t i c \/ (?< file > .+ ) ( ) ) $ / . exec (
1717 p ,
1818 ) ;
1919 if ( r !== null ) {
3434 }
3535 } else if ( m === 'POST' ) {
3636 {
37- let r = / ^ \/ e v e n t \/ (?< event > [ ^ / ] + ) \/ c o m m e n t ( ) $ $ / . exec ( p ) ;
37+ let r = / ^ \/ e v e n t \/ (?< event > [ ^ / ] + ) \/ c o m m e n t ( ) $ / . exec ( p ) ;
3838 if ( r !== null ) {
3939 if ( r [ 2 ] === '' ) {
4040 return 'POST /event/:event/comment' ;
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export const reset = (): void => {
6565export const connect_node_compile_to_regexp = < T > ( connectNode : ConnectNode < T > ) : string => {
6666 if ( connectNode [ 0 ] !== null ) {
6767 HANDLERS . push ( connectNode [ 0 ] ) ;
68- return connectNode [ 1 ] === null ? '()$ |' : `(?:()$ |${ node_compile_to_regexp ( connectNode [ 1 ] ) } )|` ;
68+ return connectNode [ 1 ] === null ? '()|' : `(?:()|${ node_compile_to_regexp ( connectNode [ 1 ] ) } )|` ;
6969 }
7070
7171 return node_compile_to_regexp ( connectNode [ 1 ] ! ) + '|' ;
@@ -79,7 +79,7 @@ export const node_compile_to_regexp = <T>(node: Node<T>): string => {
7979 partsCnt = 1 ;
8080
8181 HANDLERS . push ( node [ 1 ] ) ;
82- parts += '()$ |' ;
82+ parts += '()|' ;
8383 }
8484
8585 if ( node [ 2 ] !== null )
You can’t perform that action at this time.
0 commit comments