upload project source code
This commit is contained in:
15
后端源码/yifan.action-ai.cn/index/js/index.DZZZOFI8.js
Normal file
15
后端源码/yifan.action-ai.cn/index/js/index.DZZZOFI8.js
Normal file
@@ -0,0 +1,15 @@
|
||||
function isExternal(path) {
|
||||
const isExternal2 = /^(https?:|http?:|mailto:|tel:)/.test(path);
|
||||
return isExternal2;
|
||||
}
|
||||
function formatGrowthRate(growthRate) {
|
||||
if (growthRate === 0) {
|
||||
return "-";
|
||||
}
|
||||
const formattedRate = Math.abs(growthRate * 100).toFixed(2).replace(/\.?0+$/, "");
|
||||
return formattedRate + "%";
|
||||
}
|
||||
export {
|
||||
formatGrowthRate as f,
|
||||
isExternal as i
|
||||
};
|
||||
Reference in New Issue
Block a user