forked from mystiq/hydrogen-web
Add lint fixes
This commit is contained in:
parent
c835dc324e
commit
fb29913ef0
4 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue