Browse Source

ref(js): Simplify form source require regex (#42741)

Evan Purkhiser 2 years ago
parent
commit
c46fc44421
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/actionCreators/formSearch.tsx

+ 1 - 1
static/app/actionCreators/formSearch.tsx

@@ -41,7 +41,7 @@ const createSearchMap = ({
 export function loadSearchMap() {
   // Load all form configuration files via webpack that export a named `route`
   // as well as either `fields` or `formGroups`
-  const context = require.context('../data/forms', true, /\.[tj]sx?$/);
+  const context = require.context('../data/forms', true, /\.tsx?$/);
 
   // Get a list of all form fields defined in `../data/forms`
   const allFormFields = flatten(