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:
Tim Yung
2023-08-15 18:29:00 -07:00
committed by Facebook GitHub Bot
parent e637a3385b
commit a99c9764aa
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
View File
@@ -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/.*