Match any port in dupe check (#297)
Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
parent
88372b6a9e
commit
ace2a4df3b
|
@ -639,7 +639,7 @@ export default {
|
|||
},
|
||||
dupes: async (parent, { url }, { me, models }) => {
|
||||
const urlObj = new URL(ensureProtocol(url))
|
||||
let uri = urlObj.hostname + urlObj.pathname
|
||||
let uri = urlObj.hostname + '(:[0-9]+)?' + urlObj.pathname
|
||||
uri = uri.endsWith('/') ? uri.slice(0, -1) : uri
|
||||
|
||||
const parseResult = parse(urlObj.hostname)
|
||||
|
|
Loading…
Reference in New Issue