hexo/node_modules/ali-oss/lib/common/utils/checkUserAgent.ts

5 lines
142 B
TypeScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
export const checkUserAgent = ua => {
const userAgent = ua.replace(/\u03b1/, 'alpha').replace(/\u03b2/, 'beta');
return userAgent;
};