Simplify RegExp (#995)
Summary: ## Changelog Pull Request resolved: https://github.com/facebook/flipper/pull/995 Reviewed By: passy Differential Revision: D21112956 Pulled By: priteshrnandgaonkar fbshipit-source-id: 14d79dd399970c49835aab7eeb7dbd69ee323ab9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
21b79af5f2
commit
ad6da949f7
@@ -12,10 +12,7 @@ import React from 'react';
|
||||
import electron from 'electron';
|
||||
|
||||
const devToolsNodeId = (url: string) =>
|
||||
`hermes-chromedevtools-out-of-react-node-${url.replace(
|
||||
/[^a-zA-Z0-9]+/g,
|
||||
'-',
|
||||
)}`;
|
||||
`hermes-chromedevtools-out-of-react-node-${url.replace(/\W+/g, '-')}`;
|
||||
|
||||
// TODO: build abstractionf or this: T62306732
|
||||
const TARGET_CONTAINER_ID = 'flipper-out-of-contents-container'; // should be a hook in the future
|
||||
|
||||
Reference in New Issue
Block a user