Skip to content

Commit

Permalink
removed extra spaces from reex patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
The-x-Theorist committed Dec 2, 2021
1 parent 518c6a4 commit db3aeb9
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -32,12 +32,11 @@ const DEFAULT = {
};

const JSX_SOURCE_ANNOTATION_REGEX =
/^\*?\s*?\*?\*?\s*@jsxImportSource\s+([^\s]+)\s*$/;
const JSX_RUNTIME_ANNOTATION_REGEX =
/^\*?\s*?\*?\*?\s*@jsxRuntime\s+([^\s]+)\s*$/;
/^\s*\*?\s*@jsxImportSource\s+([^\s]+)\s*$/m;
const JSX_RUNTIME_ANNOTATION_REGEX = /^\s*\*?\s*@jsxRuntime\s+([^\s]+)\s*$/m;

const JSX_ANNOTATION_REGEX = /^\*?\s*?\*?\*?\s*@jsx\s+([^\s]+)\s*$/;
const JSX_FRAG_ANNOTATION_REGEX = /^\*?\s*?\*?\*?\s*@jsxFrag\s+([^\s]+)\s*$/;
const JSX_ANNOTATION_REGEX = /^\s*\*?\s*@jsx\s+([^\s]+)\s*$/m;
const JSX_FRAG_ANNOTATION_REGEX = /^\s*\*?\s*@jsxFrag\s+([^\s]+)\s*$/m;

const get = (pass: PluginPass, name: string) =>
pass.get(`@babel/plugin-react-jsx/${name}`);
Expand Down

0 comments on commit db3aeb9

Please sign in to comment.