From b6a512961d0a28c3319e1039c09527fb5c17fea0 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 24 Aug 2024 16:45:19 +0200 Subject: [PATCH] Fix tests --- src/UI/InputElement/Validators/UrlValidator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/InputElement/Validators/UrlValidator.ts b/src/UI/InputElement/Validators/UrlValidator.ts index 6854c9415..0e58d1876 100644 --- a/src/UI/InputElement/Validators/UrlValidator.ts +++ b/src/UI/InputElement/Validators/UrlValidator.ts @@ -90,7 +90,8 @@ export default class UrlValidator extends Validator { * * const v = new UrlValidator() * v.getFeedback("example.").textFor("en") // => "This is not a valid web address" - * v.getFeedback("https://booking.com/some-hotel.html").textFor("en").indexOf("search the official website") > 0 // => true + * v.isValid("https://booking.com/some-hotel.html") // => false + * v.getFeedback("https://booking.com/some-hotel.html").textFor("en").indexOf("low-quality") > 0 // => true * */ getFeedback(s: string, getCountry?: () => string): Translation | undefined {