mirror of
https://github.com/iv-org/close-potential-duplicates.git
synced 2024-11-26 23:50:43 +00:00
parent
e0aa68fcba
commit
393ab50fe8
@ -22,7 +22,7 @@ jobs:
|
||||
# Any matched issue will stop detection immediately.
|
||||
# You can specify multi filters in each line.
|
||||
filter: ''
|
||||
# Exclude keyworlds in title before detecting.
|
||||
# Exclude keywords in title before detecting.
|
||||
exclude: ''
|
||||
# Label to set, when potential duplicates are detected.
|
||||
label: potential-duplicate
|
||||
|
@ -9,7 +9,7 @@ inputs:
|
||||
description: Filter issues by title.
|
||||
required: false
|
||||
exclude:
|
||||
description: Exclude keyworlds in title before detecting.
|
||||
description: Exclude keywords in title before detecting.
|
||||
required: false
|
||||
label:
|
||||
description: Label to set, when potential duplicates are detected.
|
||||
|
@ -42,9 +42,9 @@ export namespace Util {
|
||||
if (exclude) {
|
||||
return exclude
|
||||
.split(/[\s\n]+/)
|
||||
.map((keyworld) => keyworld.trim())
|
||||
.filter((keyworld) => keyworld.length > 0)
|
||||
.reduce((memo, keyworld) => memo.replace(keyworld, ''), title)
|
||||
.map((keyword) => keyword.trim())
|
||||
.filter((keyword) => keyword.length > 0)
|
||||
.reduce((memo, keyword) => memo.replace(keyword, ''), title)
|
||||
.replace(/\s+/, ' ')
|
||||
.trim()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user