mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
yarn lint
This commit is contained in:
parent
61679549d2
commit
652fdcca5c
@ -12,11 +12,11 @@ export default class EventHandler extends Extension {
|
|||||||
props: {
|
props: {
|
||||||
transformPastedText(text) {
|
transformPastedText(text) {
|
||||||
/* remove hashtag from d.tube url
|
/* remove hashtag from d.tube url
|
||||||
* hashtags in url general are not a problem because the following link work like expected:
|
* hashtags in url general are not a problem because the following link work like expected:
|
||||||
* http://www.nsosp.org/de/Quanten-Fluss-Theorie/index.php#OM:FrQFT:Home:Inhalt
|
* http://www.nsosp.org/de/Quanten-Fluss-Theorie/index.php#OM:FrQFT:Home:Inhalt
|
||||||
*/
|
*/
|
||||||
if ( text.search(/d.tube/) > 0) {
|
if (text.search(/d.tube/) > 0) {
|
||||||
text = text.replace(/\/#!\//gim, '/')
|
text = text.replace(/\/#!\//gim, '/')
|
||||||
}
|
}
|
||||||
return text.trim()
|
return text.trim()
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user