From a99c9764aaf18078f82a08cacd831dbdde9fd348 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Tue, 15 Aug 2023 18:29:00 -0700 Subject: [PATCH] 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 --- .flowconfig | 4 ++-- .flowconfig.android | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.flowconfig b/.flowconfig index eca6095b64a..6a1494abc33 100644 --- a/.flowconfig +++ b/.flowconfig @@ -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' /packages/react-native/template/.* diff --git a/.flowconfig.android b/.flowconfig.android index 13d973ba5a7..a04803f3651 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -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' /packages/react-native/template/.*