Foren: 【移行しました】サポート (Thread #38488)

ドキュメントブーストで複数のURLを指定したい時 (2017-03-30 09:49 by wasabi1975 #79597)

複数のURLを指定したい時は、
url.matches("https://www.hoge.com/");
url.matches("http://www.fuga.com/");
と、複数行記述すればよろしいでしょうか?

Reply to #79597×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Anmelden

Re: ドキュメントブーストで複数のURLを指定したい時 (2017-03-30 12:08 by shinsuke #79598)

Groovyで処理されて、戻り値が評価されるので
url.matches("https://www.hoge.com/") || url.matches("http://www.fuga.com/")
という感じになると思います。
Reply to #79597

Reply to #79598×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Anmelden

Re: ドキュメントブーストで複数のURLを指定したい時 (2017-03-30 12:53 by wasabi1975 #79600)

ありがとうございます。
Reply to #79598

Reply to #79600×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Anmelden