feat: accepting dot in the archive item name
This commit is contained in:
parent
c7dbc916b3
commit
bb1fe91af0
1 changed files with 2 additions and 2 deletions
|
@ -50,8 +50,8 @@ function validateArchiveUrl(url) {
|
||||||
try {
|
try {
|
||||||
const archiveUrl = new URL(url);
|
const archiveUrl = new URL(url);
|
||||||
|
|
||||||
var urlPattern = new RegExp("(http|https)://archive.org/details/[a-zA-Z0-9_-]*$")
|
var urlPattern = new RegExp("(http|https)://archive.org/details/[a-zA-Z0-9\._-]*$")
|
||||||
if (!urlPattern.test(url) ){
|
if (!urlPattern.test(url) ) {
|
||||||
throw 'Paste and archive.org url';
|
throw 'Paste and archive.org url';
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue