diff --git a/build-scripts/gulp/entry-html.js b/build-scripts/gulp/entry-html.js
index c98b6d6acb..8627d61713 100644
--- a/build-scripts/gulp/entry-html.js
+++ b/build-scripts/gulp/entry-html.js
@@ -311,7 +311,7 @@ function loadES5() {
el.src = '${es5Entrypoint}';
document.body.appendChild(el);
}
-if (/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent)) {
+if (/.*Version\\/(?:11|12)(?:\\.\\d+)*.*Safari\\//.test(navigator.userAgent)) {
loadES5();
} else {
try {