From 5090e950f7b8fb25e3b7e68101b9134b3efcd5b5 Mon Sep 17 00:00:00 2001 From: Guillaume Weghsteen Date: Mon, 5 Feb 2024 09:15:43 -0800 Subject: [PATCH] No public description PiperOrigin-RevId: 604338617 --- src/builders/html_sanitizer/html_sanitizer.ts | 5 ++++- .../testvectors/javascript_url_sanitizer_test_vectors.ts | 5 ++++- test/testing/testvectors/url_test_vectors.ts | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/builders/html_sanitizer/html_sanitizer.ts b/src/builders/html_sanitizer/html_sanitizer.ts index 5f3b344..6c87971 100644 --- a/src/builders/html_sanitizer/html_sanitizer.ts +++ b/src/builders/html_sanitizer/html_sanitizer.ts @@ -32,7 +32,10 @@ export interface HtmlSanitizer { /** Implementation for `HtmlSanitizer` */ export class HtmlSanitizerImpl implements HtmlSanitizer { private changes: string[] = []; - constructor(private readonly sanitizerTable: SanitizerTable, token: object) { + constructor( + private readonly sanitizerTable: SanitizerTable, + token: object, + ) { ensureTokenIsValid(token); } diff --git a/test/testing/testvectors/javascript_url_sanitizer_test_vectors.ts b/test/testing/testvectors/javascript_url_sanitizer_test_vectors.ts index cbd854f..970f287 100644 --- a/test/testing/testvectors/javascript_url_sanitizer_test_vectors.ts +++ b/test/testing/testvectors/javascript_url_sanitizer_test_vectors.ts @@ -6,7 +6,10 @@ // AUTOGENERATED. DO NOT EDIT. export class UrlTestVector { - constructor(public input: string, public expected: string) {} + constructor( + public input: string, + public expected: string, + ) {} } export class UrlTestVectorOnDemandScheme { diff --git a/test/testing/testvectors/url_test_vectors.ts b/test/testing/testvectors/url_test_vectors.ts index a00b00c..2a151ed 100644 --- a/test/testing/testvectors/url_test_vectors.ts +++ b/test/testing/testvectors/url_test_vectors.ts @@ -6,7 +6,10 @@ // AUTOGENERATED. DO NOT EDIT. export class UrlTestVector { - constructor(public input: string, public expected: string) {} + constructor( + public input: string, + public expected: string, + ) {} } export class UrlTestVectorOnDemandScheme {