Minor comment updates

pull/21833/head
Travis Ralston 2019-09-30 20:38:03 -06:00
parent 6e6f8a13e1
commit 6f5ccd4c12
2 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ module.exports = createReactClass({
const url = node.getAttribute("href"); const url = node.getAttribute("href");
const host = url.match(/^https?:\/\/(.*?)(\/|$)/)[1]; const host = url.match(/^https?:\/\/(.*?)(\/|$)/)[1];
// never preview matrix.to links (if anything we should give a smart // never preview permalinks (if anything we should give a smart
// preview of the room/user they point to: nobody needs to be reminded // preview of the room/user they point to: nobody needs to be reminded
// what the matrix.to site looks like). // what the matrix.to site looks like).
if (isPermalinkHost(host)) return false; if (isPermalinkHost(host)) return false;

View File

@ -536,7 +536,7 @@ export default class MessageComposerInput extends React.Component {
const textWithMdPills = this.plainWithMdPills.serialize(editorState); const textWithMdPills = this.plainWithMdPills.serialize(editorState);
const markdown = new Markdown(textWithMdPills); const markdown = new Markdown(textWithMdPills);
// HTML deserialize has custom rules to turn matrix.to links into pill objects. // HTML deserialize has custom rules to turn permalinks into pill objects.
return this.html.deserialize(markdown.toHTML()); return this.html.deserialize(markdown.toHTML());
} }