Skip to content

Commit cde14c7

Browse files
committed
fix URL链接版本号获取问题
1 parent c23c693 commit cde14c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ $(document).ready(function () {
5050

5151
function getVersion() {
5252
var pathname = window.location.pathname.replace("/en/", "/");
53-
var match = pathname.match(/^\/(dev|example|(?:\d+\.)+\d)\/.*/);//匹配版本:dev|web|9.0.0
54-
return match && match[1] !== "example" ? match[1] : null;
53+
var match = pathname.match(/^\/(dev|(?:\d+\.)+\d)\/.*/);//匹配版本:dev|9.0.0
54+
return match && match[1] ? match[1] : null;
5555
}
5656

5757

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy