Add lint fixes

This commit is contained in:
Danila Fedorin 2021-07-16 14:21:39 -07:00
parent c835dc324e
commit fb29913ef0
4 changed files with 4 additions and 4 deletions

View file

@ -100,7 +100,7 @@ export class ImagePart {
} }
get type() { return "image"; } get type() { return "image"; }
}; }
export class PillPart { export class PillPart {
constructor(id, href, children) { constructor(id, href, children) {

View file

@ -31,7 +31,7 @@ export class BaseTextTile extends BaseMessageTile {
return "message"; return "message";
} }
_parseBody(body, _) { _parseBody(body) {
return stringAsBody(body.string); return stringAsBody(body.string);
} }

View file

@ -55,7 +55,7 @@ class HTMLParseResult {
} }
const sanitizeConfig = { const sanitizeConfig = {
ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|xxx|mxc):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i, ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|xxx|mxc):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))/i,
} }
export function parseHTML(html) { export function parseHTML(html) {

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {tag, text, classNames} from "../../../general/html.js"; import {tag, text} from "../../../general/html.js";
import {BaseMessageView} from "./BaseMessageView.js"; import {BaseMessageView} from "./BaseMessageView.js";
export class TextMessageView extends BaseMessageView { export class TextMessageView extends BaseMessageView {