Skip to content

Commit 1630143

Browse files
committed
[DURACOM-172] improve regex
1 parent d9857a7 commit 1630143

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ function saveToCache(req, page: any) {
486486
* @param statusCode
487487
*/
488488
function hasNotSucceeded(statusCode) {
489-
const rgx = new RegExp(/20+/);
489+
const rgx = new RegExp(/^20+/);
490490
return !rgx.test(statusCode)
491491
}
492492

0 commit comments

Comments
 (0)