Navigation Menu

Skip to content

Commit

Permalink
Adding includes fix for plugin-proposal-numeric-separator (#12311)
Browse files Browse the repository at this point in the history
Co-authored-by: fraywing <austin@rupie.io>
  • Loading branch information
fraywing and fraywing committed Nov 4, 2020
1 parent 12c6db6 commit ddf30ee
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -9,7 +9,7 @@ import syntaxNumericSeparator from "@babel/plugin-syntax-numeric-separator";
*/
function remover({ node }: NodePath<BigIntLiteral | NumericLiteral>) {
const { extra } = node;
if (extra && extra.raw.includes("_")) {
if (extra?.raw?.includes("_")) {
extra.raw = extra.raw.replace(/_/g, "");
}
}
Expand Down

0 comments on commit ddf30ee

Please sign in to comment.