We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c23c693 commit cde14c7Copy full SHA for cde14c7
examples/js/common.js
@@ -50,8 +50,8 @@ $(document).ready(function () {
50
51
function getVersion() {
52
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;
+ var match = pathname.match(/^\/(dev|(?:\d+\.)+\d)\/.*/);//匹配版本:dev|9.0.0
+ return match && match[1] ? match[1] : null;
55
}
56
57
0 commit comments