mirror of
https://github.com/iv-org/close-potential-duplicates.git
synced 2024-11-26 23:50:43 +00:00
fix: 🐛 trimming leading and trailing spaces in issue title
empty spaces can bring false positives re #12
This commit is contained in:
parent
0d07e57247
commit
e0aa68fcba
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "potential-duplicates",
|
||||
"description": "A Github Action to search for potential issue duplicates using Damerau–Levenshtein algorithm.",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"main": "dist/index.js",
|
||||
"repository": "https://github.com/bubkoo/potential-duplicates",
|
||||
"author": "bubkoo <bubkoo.wy@gmail.com>",
|
||||
|
@ -46,6 +46,7 @@ export namespace Util {
|
||||
.filter((keyworld) => keyworld.length > 0)
|
||||
.reduce((memo, keyworld) => memo.replace(keyworld, ''), title)
|
||||
.replace(/\s+/, ' ')
|
||||
.trim()
|
||||
}
|
||||
return title
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user