diff --git a/components/doc/keyfilter/regexworddoc.js b/components/doc/keyfilter/regexworddoc.js
index f6501046cc..686e94f528 100644
--- a/components/doc/keyfilter/regexworddoc.js
+++ b/components/doc/keyfilter/regexworddoc.js
@@ -29,7 +29,7 @@ export function RegexWordDoc(props) {
const code = {
basic: `
-
+
`,
javascript: `
import React, { useState } from 'react';
@@ -65,7 +65,7 @@ export default function RegexDemo() {
-
+
)
@@ -105,7 +105,7 @@ export default function RegexDemo() {
-
+
)