CopyPastor

Detecting plagiarism made easy.

Score: 1.7536407556251592; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2020-12-25
by Codemaker

Original Post

Original - Posted on 2020-07-22
by Mishan Madhupa



            
Present in both answers; Present only in the new answer; Present only in the old answer;

It is due to mismatched blacklist file configuration.
To resolve that,
1. We have to move to the project folder.
2. Open `\node_modules\metro-config\src\defaults\blacklist.js`
3. Replace the following.
From
var sharedBlacklist = [ /node_modules[/\\]react[/\\]dist[/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ];
To
var sharedBlacklist = [ /node_modules[\/\\]react[\/\\]dist[\/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ];
I got same problem.
"error Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Unterminated character class."
Change the regular expression in `\node_modules\metro-config\src\defaults\blacklist.js`
**From**
var sharedBlacklist = [ /node_modules[/\\]react[/\\]dist[/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ];
**To**
var sharedBlacklist = [ /node_modules[\/\\]react[\/\\]dist[\/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ];
This change resolved my error.

        
Present in both answers; Present only in the new answer; Present only in the old answer;