UNPKG
hexo-abbrlink-iuxt
Version:
latest (2.2.2)
2.2.2
create one and only link for every post for hexo
github.com/iuxt/hexo-abbrlink
iuxt/hexo-abbrlink
hexo-abbrlink-iuxt
/
lib
/
model.js
21 lines
(15 loc)
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'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;