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 fa1259a commit 49bd436Copy full SHA for 49bd436
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "cos-nodejs-sdk-v5",
3
- "version": "2.11.1",
+ "version": "2.11.2",
4
"description": "cos nodejs sdk v5",
5
"main": "index.js",
6
"types": "index.d.ts",
sdk/util.js
@@ -637,10 +637,7 @@ var isWeb = function () {
637
}
638
639
var isCIHost = function(url) {
640
- if (url && url.split('?')[0].match(/(.ci.|ci.|.ci)/g)) {
641
- return true;
642
- }
643
- return false;
+ return /^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(url);
644
645
646
var util = {
0 commit comments