From f82d0532ae02efb08dd163623ec3d55c8b0632fb Mon Sep 17 00:00:00 2001 From: Yacine Hmito Date: Sat, 9 May 2020 08:28:09 +0200 Subject: [PATCH] Test the full tag --- lib/util/jsx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/jsx.js b/lib/util/jsx.js index e8aff1ea0f..b72c10f054 100644 --- a/lib/util/jsx.js +++ b/lib/util/jsx.js @@ -6,7 +6,7 @@ const elementType = require('jsx-ast-utils/elementType'); -const COMPAT_TAG_REGEX = /^[a-z]|-/; +const COMPAT_TAG_REGEX = /^[a-z]|-$/; /** * Checks if a node represents a DOM element.