OmegaChartのソースコードの保守
Revisión | a3aa6bb2f9a2676a4a5046e98be4c22e1676ce14 (tree) |
---|---|
Tiempo | 2021-07-20 23:04:27 |
Autor | panacoran <panacoran@user...> |
Commiter | panacoran |
Yahooファイナンスの形式変更に対応する
@@ -180,7 +180,7 @@ namespace Zanetti.DataSource.Specialized | ||
180 | 180 | } |
181 | 181 | |
182 | 182 | private static readonly Regex Valid = new Regex( |
183 | - @"<tr[^>]*><th[^>]*>(?<year>\d{4})年(?<month>1?\d)月(?<day>\d?\d)日<\/th><td[^>]+>(?:<span[^>]+>)+(?<open>[0-9,.]+)<\/span>.*?<\/td><td[^>]+>(?:<span[^>]+>)+(?<high>[0-9,.]+)<\/span>.*?<\/td><td[^>]+>(?:<span[^>]+>)+(?<low>[0-9,.]+)<\/span>.+?<\/td><td[^>]+>(?:<span[^>]+>)+(?<close>[0-9,.]+)<\/span>.+?<\/td>(?:<td.*?>(?<volume>[0-9,.]+)<\/span>.+?<\/td>)?<\/tr>", | |
183 | + @"<tr[^>]*><t[hd][^>]*>(?<year>\d{4})年(?<month>1?\d)月(?<day>\d?\d)日<\/t[hd]><td[^>]+>(?:<span[^>]+>)+(?<open>[0-9,.]+)<\/span>.*?<\/td><td[^>]+>(?:<span[^>]+>)+(?<high>[0-9,.]+)<\/span>.*?<\/td><td[^>]+>(?:<span[^>]+>)+(?<low>[0-9,.]+)<\/span>.+?<\/td><td[^>]+>(?:<span[^>]+>)+(?<close>[0-9,.]+)<\/span>.+?<\/td>(?:<td.*?>(?<volume>[0-9,.]+)<\/span>.+?<\/td>)?<\/tr>", | |
184 | 184 | RegexOptions.Compiled); |
185 | 185 | |
186 | 186 | private static readonly Regex NoData = new Regex("時系列情報がありません"); |