diff --git a/src/UI/InputElement/Validators/UrlValidator.ts b/src/UI/InputElement/Validators/UrlValidator.ts index 0e58d1876..0a31cf26f 100644 --- a/src/UI/InputElement/Validators/UrlValidator.ts +++ b/src/UI/InputElement/Validators/UrlValidator.ts @@ -90,9 +90,7 @@ export default class UrlValidator extends Validator { * * const v = new UrlValidator() * v.getFeedback("example.").textFor("en") // => "This is not a valid web address" - * v.isValid("https://booking.com/some-hotel.html") // => false - * v.getFeedback("https://booking.com/some-hotel.html").textFor("en").indexOf("low-quality") > 0 // => true - * + * v.getFeedback("https://booking.com/some-hotel.html").textFor("en") // => Translations.t.validation.url.spamSite.Subs({host: "booking.com"}).textFor("en") */ getFeedback(s: string, getCountry?: () => string): Translation | undefined { if ( @@ -128,6 +126,10 @@ export default class UrlValidator extends Validator { return undefined } + /** + * const v = new UrlValidator() + * v.isValid("https://booking.com/some-hotel.html") // => false + */ isValid(str: string): boolean { try { diff --git a/test/Logic/OSM/Actions/SplitAction.spec.ts b/test/Logic/OSM/Actions/SplitAction.spec.ts index 314d7ac58..35605a0c2 100644 --- a/test/Logic/OSM/Actions/SplitAction.spec.ts +++ b/test/Logic/OSM/Actions/SplitAction.spec.ts @@ -2815,10 +2815,10 @@ describe("SplitAction", () => { expect(changes[1].changes["nodes"]).toEqual([ 6490126559, 8715440375, 8715440374, 8715440373, 8715440372, 8715440371, 8715440370, - 8715440369, -1, + 8715440369, -2, ]) expect(changes[2].changes["nodes"]).toEqual([ - -1, 8715440368, 8715440367, 8715440366, 8715440365, 8715440364, 8715440363, + -2, 8715440368, 8715440367, 8715440366, 8715440365, 8715440364, 8715440363, ]) }) })