Skip to content

Commit

Permalink
refactor @使いそうだったので、!に変更 (kbさんアドバイス)
Browse files Browse the repository at this point in the history
  • Loading branch information
t29mato committed Oct 27, 2019
1 parent e53da27 commit af8dab1
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions config/ocean.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
'URL' => 'http://iwadive.divingnavi.info/',
'name' => '',
'patterns' => [
'@岩の今日の海況([\s\S]*?)</table>@',
'@透視度([\s\S]*?)<br />@',
'!岩の今日の海況([\s\S]*?)</table>!',
'!透視度([\s\S]*?)<br />!',
],
'characterCode' => 'sjis',
'CSS' => [
Expand All @@ -19,7 +19,7 @@
'URL' => 'http://www.izu-ito.jp/kawana/info.html',
'name' => '川奈',
'patterns' => [
'@ビーチ : ([\s\S]*?)br@',
'!ビーチ : ([\s\S]*?)br!',
],
'characterCode' => 'sjis',
'CSS' => [
Expand All @@ -32,9 +32,9 @@
'URL' => 'http://www.izu-ito.jp/futo/info.html',
'name' => '富戸',
'patterns' => [
'@<td nowrap>ビーチ</td>([\s\S]*?)</td></tr>@',
'@<td>:</td>([\s\S]*?)</td></tr>@',
'@<td nowrap>([\s\S]*?)</td></tr>@',
'!<td nowrap>ビーチ</td>([\s\S]*?)</td></tr>!',
'!<td>:</td>([\s\S]*?)</td></tr>!',
'!<td nowrap>([\s\S]*?)</td></tr>!',
],
'characterCode' => 'sjis',
'CSS' => [
Expand All @@ -48,8 +48,8 @@
'name' => '伊豆海洋公園',
'nickname' => 'IOP',
'patterns' => [
'@<dt><h4>透視度</h4></dt><dd>([\s\S]*?)</dd>@',
'@ ([\s\S]*?)</dd>@',
'!<dt><h4>透視度</h4></dt><dd>([\s\S]*?)</dd>!',
'! ([\s\S]*?)</dd>!',
],
'CSS' => [
'top' => '59%',
Expand All @@ -62,8 +62,8 @@
'name' => '伊豆大島',
'nickname' => '大島',
'patterns' => [
'@<div class="contenttext">([\s\S]*?)m@s',
'@透明度([\s\S]*?)$@s',
'!<div class="contenttext">([\s\S]*?)m!s',
'!透明度([\s\S]*?)$!s',
],
'CSS' => [
'top' => '71%',
Expand All @@ -75,8 +75,8 @@
'URL' => 'http://www.cocomo-ds.net/p4-1.html',
'name' => '大瀬崎',
'patterns' => [
'@<b>透視度</b>([\s\S]*?)<td><b>気温</b></td>@s',
'@<td>([\s\S]*?)</td>@',
'!<b>透視度</b>([\s\S]*?)<td><b>気温</b></td>!s',
'!<td>([\s\S]*?)</td>!',
],
'CSS' => [
'top' => '35%',
Expand All @@ -88,8 +88,8 @@
'URL' => 'http://kumomi-hamayu.com/sealogs/',
'name' => '雲見',
'patterns' => [
'@<th class="rightTh">透視度:</th>([\s\S]*?)</td>@s',
'@<td>([\s\S]*?)</td>@',
'!<th class="rightTh">透視度:</th>([\s\S]*?)</td>!s',
'!<td>([\s\S]*?)</td>!',
],
'CSS' => [
'top' => '72%',
Expand All @@ -101,8 +101,8 @@
'URL' => 'http://www.mikomoto.com/logs/',
'name' => '神子元島',
'patterns' => [
'@<th>透視度<br>([\s\S]*?)</tr>@s',
'@<td>([\s\S]*?)</td>@',
'!<th>透視度<br>([\s\S]*?)</tr>!s',
'!<td>([\s\S]*?)</td>!',
],
'CSS' => [
'top' => '93%',
Expand Down

0 comments on commit af8dab1

Please sign in to comment.