Ticket #25361

ロリポップサーバで動作させると正規表現に関する警告が出る。

Open Date: 2011-06-01 21:44 Last Update: 2012-03-25 10:42

Reporter:
(del#42492)
Owner:
(del#42492)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
1 - Lowest
Severity:
1 - Lowest
Resolution:
Fixed
File:
None

Details

ロリポップサーバでは cron の動作結果をメールで受け取ることができる。

受け取った結果、以下のような警告が出ていることがわかった。

.../lib/style/formatter.rb:23: warning: regexp has invalid interval .../lib/style/formatter.rb:23: warning: regexp has invalid interval .../lib/style/formatter.rb:42: warning: regexp has invalid interval .../lib/style/formatter.rb:42: warning: regexp has invalid interval .../lib/style/formatter.rb:48: warning: regexp has invalid interval .../lib/style/formatter.rb:48: warning: regexp has invalid interval

警告は出ているが、正常に動作している。

Ticket History (2/2 Histories)

2011-06-01 21:44 Updated by: (del#42492)
  • New Ticket "ロリポップサーバで動作させると正規表現に関する警告が出る。" created
2012-03-25 10:42 Updated by: toy_dev
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2012-03-25 10:42
Comment

正規表現に関する例外は { に関するものであることがわかった。

正規表現内で { を利用する場合は、\{ と記述すれば良い。

Ruby 1.8 系でも 1.9 系でもこれで警告が出ずに正常に動作する。

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login