File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
components/intercept/config Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ const Spacer = styled.div`
62
62
63
63
function urlSafeBase64 ( content : string ) {
64
64
return Buffer . from ( content , 'utf8' ) . toString ( 'base64' )
65
- . replace ( '+' , '-' )
66
- . replace ( '/' , '_' ) ;
65
+ . replace ( / \+ / g , '-' )
66
+ . replace ( / \/ / g , '_' ) ;
67
67
}
68
68
69
69
function getConfigRequestIds ( eventsStore : EventsStore ) {
Original file line number Diff line number Diff line change @@ -246,8 +246,8 @@ export function getBodySchema(
246
246
247
247
const schemaKey = _ . find < string > ( mediaTypeKeys , ( key ) =>
248
248
new RegExp ( '^' + // Must match at the start
249
- key . replace ( '*' , '.*' ) // Wildcards to regex wildcard
250
- . replace ( / ; .* / , '' ) // Ignore charset etc
249
+ key . replace ( / \* / g , '.*' ) // Wildcards to regex wildcard
250
+ . replace ( / ; .* / g , '' ) // Ignore charset etc
251
251
) . exec ( contentType ) !== null
252
252
) ;
253
253
You can’t perform that action at this time.
0 commit comments