File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1763,7 +1763,7 @@ class DatabaseController {
1763
1763
if ( this . options && this . options . requestKeywordDenylist ) {
1764
1764
// Scan request data for denied keywords
1765
1765
for ( const keyword of this . options . requestKeywordDenylist ) {
1766
- const isMatch = ( a , b ) => ( typeof a === 'string' && new RegExp ( a ) . test ( b ) ) || a === b ;
1766
+ const isMatch = ( a , b ) => ( typeof a === 'string' && new RegExp ( b ) . test ( a ) ) || a === b ;
1767
1767
if ( isMatch ( firstKey , keyword . key ) ) {
1768
1768
throw new Parse . Error (
1769
1769
Parse . Error . INVALID_KEY_NAME ,
Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ class Utils {
341
341
* @returns {Boolean } True if a match was found, false otherwise.
342
342
*/
343
343
static objectContainsKeyValue ( obj , key , value ) {
344
- const isMatch = ( a , b ) => ( typeof a === 'string' && new RegExp ( a ) . test ( b ) ) || a === b ;
344
+ const isMatch = ( a , b ) => ( typeof a === 'string' && new RegExp ( b ) . test ( a ) ) || a === b ;
345
345
const isKeyMatch = k => isMatch ( key , k ) ;
346
346
const isValueMatch = v => isMatch ( value , v ) ;
347
347
for ( const [ k , v ] of Object . entries ( obj ) ) {
You can’t perform that action at this time.
0 commit comments