File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ export class EGithubParseError extends EIntegrationParseError {
2323}
2424
2525function isPR ( url : string | URL ) {
26- return / [ / ] (?< repo > [ ^ / ] + [ / ] [ ^ / ] + ) ( [ / ] ? p u l l [ / ] ( \d + ) ) ? / . test ( url . toString ( ) ) ;
26+ return / [ / ] (?< repo > [ ^ / ] + [ / ] [ ^ / ] + ) ( [ / ] ? p u l l [ / ] ( \d + ) ) ? / i . test ( url . toString ( ) ) ;
2727}
2828
2929export const Github : Integration = {
3030 platform : "Github" ,
3131 supports ( url : string | URL ) {
32- return / ^ h t t p s ? : [ / ] [ / ] G i t h u b .c o m [ / ] [ ^ / ] + [ / ] [ ^ / ] + / . test ( url . toString ( ) ) ;
32+ return / ^ h t t p s ? : [ / ] [ / ] g i t h u b .c o m [ / ] [ ^ / ] + [ / ] [ ^ / ] + / i . test ( url . toString ( ) ) ;
3333 } ,
3434 getButtonTarget ( document : Document ) {
3535 const node =
@@ -48,7 +48,7 @@ export const Github: Integration = {
4848 } ,
4949 getRepo ( { url } ) {
5050 const results =
51- / [ / ] (?< repo > [ ^ / ] + [ / ] [ ^ / ] + ) ( [ / ] ? t r e e [ / ] (?< branch > [ ^ ? ] + ) ) ? / . exec (
51+ / [ / ] (?< repo > [ ^ / ] + [ / ] [ ^ / ] + ) ( [ / ] ? t r e e [ / ] (?< branch > [ ^ ? ] + ) ) ? / i . exec (
5252 url . toString ( ) ,
5353 ) ?. groups ;
5454 if ( ! results ) {
@@ -101,7 +101,7 @@ export const Github: Integration = {
101101 return branch ;
102102 } else {
103103 const results =
104- / [ / ] (?< repo > [ ^ / ] + [ / ] [ ^ / ] + ) ( [ / ] ? t r e e [ / ] (?< branch > [ ^ ? ] + ) ) / . exec (
104+ / [ / ] (?< repo > [ ^ / ] + [ / ] [ ^ / ] + ) ( [ / ] ? t r e e [ / ] (?< branch > [ ^ ? ] + ) ) / i . exec (
105105 url . toString ( ) ,
106106 ) ?. groups ;
107107 if ( ! results ) {
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ export class EGitLabParseError extends EIntegrationParseError {
2222}
2323
2424function isPR ( url : string | URL ) {
25- return / [ / ] [ ^ / ] + [ / ] [ ^ / ] + [ / ] - [ / ] m e r g e _ r e q u e s t s [ / ] .+ / . test ( url . toString ( ) ) ;
25+ return / [ / ] [ ^ / ] + [ / ] [ ^ / ] + [ / ] - [ / ] m e r g e _ r e q u e s t s [ / ] .+ / i . test ( url . toString ( ) ) ;
2626}
2727
2828export const GitLab : Integration = {
2929 platform : "GitLab" ,
3030 supports ( url : string | URL ) {
31- return / ^ h t t p s ? : [ / ] [ / ] g i t l a b .c o m [ / ] [ ^ / ] + [ / ] [ ^ / ] + / . test ( url . toString ( ) ) ;
31+ return / ^ h t t p s ? : [ / ] [ / ] g i t l a b .c o m [ / ] [ ^ / ] + [ / ] [ ^ / ] + / i . test ( url . toString ( ) ) ;
3232 } ,
3333 getButtonTarget ( document : Document ) {
3434 const node =
@@ -49,7 +49,7 @@ export const GitLab: Integration = {
4949 } ,
5050 getRepo ( { url } ) {
5151 const results =
52- / [ / ] (?< repo > [ ^ / ] + [ / ] [ ^ / ] + ) ( [ / ] ? t r e e [ / ] (?< branch > [ ^ ? ] + ) ) ? / . exec (
52+ / [ / ] (?< repo > [ ^ / ] + [ / ] [ ^ / ] + ) ( [ / ] ? t r e e [ / ] (?< branch > [ ^ ? ] + ) ) ? / i . exec (
5353 url . toString ( ) ,
5454 ) ?. groups ;
5555 if ( ! results ) {
@@ -101,7 +101,7 @@ export const GitLab: Integration = {
101101 }
102102 return branch ;
103103 } else {
104- const results = / [ / ] [ ^ / ] + [ / ] [ ^ / ] + [ / ] - [ / ] t r e e [ / ] (?< branch > [ ^ ? ] + ) / . exec (
104+ const results = / [ / ] [ ^ / ] + [ / ] [ ^ / ] + [ / ] - [ / ] t r e e [ / ] (?< branch > [ ^ ? ] + ) / i . exec (
105105 url . toString ( ) ,
106106 ) ?. groups ;
107107 if ( ! results ) {
You can’t perform that action at this time.
0 commit comments