teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

6

修正

2020/09/23 02:56

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -24,6 +24,4 @@
24
24
  ×不合格のurl例
25
25
  >
26
26
  http://qiitaacom
27
- javascript:alert( 'test' )
27
+ javascript:alert( 'test' )
28
- https://a.com?qiita.com=a
29
- https://aaa.com/qiita.com?a=aa

5

パターン修正

2020/09/23 02:56

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -25,6 +25,5 @@
25
25
  >
26
26
  http://qiitaacom
27
27
  javascript:alert( 'test' )
28
- https://aqiita.com
29
28
  https://a.com?qiita.com=a
30
29
  https://aaa.com/qiita.com?a=aa

4

NGパターンの削除

2020/09/23 02:53

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -24,7 +24,6 @@
24
24
  ×不合格のurl例
25
25
  >
26
26
  http://qiitaacom
27
- https://a.com/qiita.com
28
27
  javascript:alert( 'test' )
29
28
  https://aqiita.com
30
29
  https://a.com?qiita.com=a

3

NGパターンの修正

2020/09/23 02:52

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -24,7 +24,6 @@
24
24
  ×不合格のurl例
25
25
  >
26
26
  http://qiitaacom
27
- http://a.com/qiita.com
28
27
  https://a.com/qiita.com
29
28
  javascript:alert( 'test' )
30
29
  https://aqiita.com

2

文法修正

2020/09/23 02:51

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -9,7 +9,7 @@
9
9
  どなたか、こちらの問題の解決の為、ご助言頂けましたら幸いです。
10
10
 
11
11
  ### 追記です
12
- 以下は、想定しているOKパターンNGパターンになります。
12
+ 以下は、想定しているOKパターン及びNGパターンになります。
13
13
 
14
14
  ○合格のurl例
15
15
  >

1

追記

2020/09/23 02:24

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -6,4 +6,27 @@
6
6
  return re.test(url);
7
7
  },
8
8
  ```
9
- どなたか、こちらの問題の解決の為、ご助言頂けましたら幸いです。
9
+ どなたか、こちらの問題の解決の為、ご助言頂けましたら幸いです。
10
+
11
+ ### 追記です
12
+ 以下は、想定しているOKなパターンとNGなパターンになります。
13
+
14
+ ○合格のurl例
15
+ >
16
+ http://qiita.com
17
+ https://qiita.com
18
+ https://sample.qiita.com
19
+ https://qiita.com/sample
20
+ https://qiita.com/sample/aaaa?a=aa
21
+ https://qiita.com/sample/aaaa?a=aa&b=bb
22
+ https://b.qiita.com/sample/aaaa?a=aa&b=bb
23
+
24
+ ×不合格のurl例
25
+ >
26
+ http://qiitaacom
27
+ http://a.com/qiita.com
28
+ https://a.com/qiita.com
29
+ javascript:alert( 'test' )
30
+ https://aqiita.com
31
+ https://a.com?qiita.com=a
32
+ https://aaa.com/qiita.com?a=aa