mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-172] improve regex
This commit is contained in:
@@ -486,7 +486,7 @@ function saveToCache(req, page: any) {
|
|||||||
* @param statusCode
|
* @param statusCode
|
||||||
*/
|
*/
|
||||||
function hasNotSucceeded(statusCode) {
|
function hasNotSucceeded(statusCode) {
|
||||||
const rgx = new RegExp(/20+/);
|
const rgx = new RegExp(/^20+/);
|
||||||
return !rgx.test(statusCode)
|
return !rgx.test(statusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user