Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4237a23

Browse files
fix the http isse
We want to add 'https' in the case that the link does not have 'http' ot 'https' already.i.e if( ! (value.startsWith('http://') || (value.startsWith('https://') )which on simplification with De Morgans's laws wpuld lead to : if (!value.startsWith('http://') && !value.startsWith('https://'))
1 parent0eba25e commit4237a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/js/coder.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ let coder = new Vue({
106106
},
107107
filters:{
108108
fixURL:value=>{
109-
if(!value.startsWith('http://')||!value.startsWith('https://')){
109+
if(!value.startsWith('http://')&&!value.startsWith('https://')){
110110
value=`https://${value}`;
111111
}
112112
returnvalue;
@@ -195,4 +195,4 @@ let coder = new Vue({
195195
});
196196
}
197197
}
198-
});
198+
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp