hexo/node_modules/hexo-abbrlink/lib/model.js

21 lines
296 B
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +08:00
'use strict';
var crcRes = [];
let checKCrc = function(res) {
if (crcRes.indexOf(res) > -1) {
res++;
return checKCrc(res);
} else {
return res;
}
}
let thisAdd = function(value) {
crcRes.push(value);
}
exports.add = thisAdd;
exports.check = checKCrc;