mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Flow: Cleanup Platform Suffix Ignore Patterns (#39028)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39028 The regular expressions that we use to ignore other platform suffixes are wrong or unnecessarily complicated. This diff cleans them up to be idiomatic regular expressions without any extra constructs. Changelog: [Internal] Reviewed By: samwgoldman Differential Revision: D48377329 fbshipit-source-id: e6d6c36b3dd6f524cc28a3cfb2938abb06dd8ab6
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e637a3385b
commit
a99c9764aa
+2
-2
@@ -1,6 +1,6 @@
|
||||
[ignore]
|
||||
; We fork some components by platform
|
||||
.*/*[.]android.js
|
||||
; Ignore other platform suffixes
|
||||
.*\.android\.js$
|
||||
|
||||
; Ignore templates for 'react-native init'
|
||||
<PROJECT_ROOT>/packages/react-native/template/.*
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[ignore]
|
||||
; We fork some components by platform
|
||||
.*/*[.]ios.js
|
||||
; Ignore other platform suffixes
|
||||
.*\.ios\.js$
|
||||
|
||||
; Ignore templates for 'react-native init'
|
||||
<PROJECT_ROOT>/packages/react-native/template/.*
|
||||
|
||||
Reference in New Issue
Block a user