質問編集履歴

2

コピペミス

2018/01/11 06:44

投稿

owen112
owen112

スコア7

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  text = text.replace(
16
16
 
17
- ((http|https|ftp|ftps)\://[a-zA-Z0-9\-.]+.[a-zA-Z]{2,3}(/\S*)?)/g,
17
+ /((http|https|ftp|ftps)\://[a-zA-Z0-9\-.]+.[a-zA-Z]{2,3}(/\S*)?)/g,
18
18
 
19
19
  '<a href="$1">$1</a>'
20
20
 

1

コードミス

2018/01/11 06:44

投稿

owen112
owen112

スコア7

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  text = text.replace(
16
16
 
17
- /((http|https|ftp|ftps)\://[a-zA-Z0-9\-.]+.[a-zA-Z]{2,3}(/\S*)?)/g,
17
+ ((http|https|ftp|ftps)\://[a-zA-Z0-9\-.]+.[a-zA-Z]{2,3}(/\S*)?)/g,
18
18
 
19
19
  '<a href="$1">$1</a>'
20
20