dillon1000/react
Commit
Browse files Handle fbt:param with only leading or trailing whitespace
Fixes T180504437. We expected `<fbt:param>` to always have no surrounding whitespace or have both leading and trailing whitespace, it can have one but not the other, though such cases are rare in practice.
Changed paths7 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts ModifiedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.todo-fbt-with-additional-whitespace-child.expect.md DeletedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.todo-fbt-with-additional-whitespace-child.js DeletedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/fbt/fbt-param-with-leading-whitespace.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/fbt/fbt-param-with-leading-whitespace.js AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/fbt/fbt-param-with-trailing-whitespace.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/fbt/fbt-param-with-trailing-whitespace.js AddedPatch
Files changed
Rendering syntax-highlighted changes…