mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-10-13 07:16:35 +03:00
22 lines
563 B
JavaScript
22 lines
563 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
/* @flow */
|
|
function isInternalFile(sourceFileName: ?string, fileName: ?string) {
|
|
return (
|
|
sourceFileName == null ||
|
|
sourceFileName === '' ||
|
|
sourceFileName.indexOf('/~/') !== -1 ||
|
|
sourceFileName.indexOf('/node_modules/') !== -1 ||
|
|
sourceFileName.trim().indexOf(' ') !== -1 ||
|
|
fileName == null ||
|
|
fileName === ''
|
|
);
|
|
}
|
|
|
|
export { isInternalFile };
|