Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2015104216
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
장준영
2020-12-12 03:36:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
faaaf7f0f158d390d5fed3c4505f020069a00889
faaaf7f0
1 parent
3a2d6140
feat : levenshtein 설치 및 test
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
server/package.json
server/service/calcDistance.js
server/package.json
View file @
faaaf7f
...
...
@@ -14,6 +14,7 @@
"hangul-js"
:
"^0.2.6"
,
"http-errors"
:
"~1.6.3"
,
"jade"
:
"~1.11.0"
,
"js-levenshtein"
:
"^1.1.6"
,
"morgan"
:
"~1.9.1"
,
"mysql2"
:
"^2.2.5"
},
...
...
server/service/calcDistance.js
View file @
faaaf7f
const
levenshtein
=
require
(
'js-levenshtein'
);
const
calcDistance
=
()
=>
{
const
result
=
levenshtein
(
'개새끼'
,
'ㄱHsㅐㄲ!'
);
console
.
log
(
result
);
};
calcDistance
();
...
...
Please
register
or
login
to post a comment