fluent-plugin-rewrite icon indicating copy to clipboard operation
fluent-plugin-rewrite copied to clipboard

Added the processing when did not match the rules.

Open studio3104 opened this issue 12 years ago • 2 comments

Hi. I've added the action to take if do not match the rules.

Changes ・Do not emit if the tag is not replaced. ・Output an error message depending on the situation. ・Set the rules required the 'key' and 'pattern'.

Thank you confirmation.

studio3104 avatar Dec 03 '12 12:12 studio3104

ご指摘の箇所を修正し、エラーメッセージのテストを追加しました。 インスタンス変数での実装以外が思いつかなかったので、基本的には前回のコミットと同じ処理です。。

ご確認よろしくお願いいたします。

studio3104 avatar Dec 04 '12 09:12 studio3104

・単一のkeyに対して最終的にappend_to_tagがセットされていない場合 ・(add|remove)_prefixが設定されいない場合

に、raise ConfigErrorするようにしました。 醜いコードでコミット重ねてしまって大変恐縮ですが、ご確認よろしくお願いいたしますm(__)m

studio3104 avatar Dec 05 '12 12:12 studio3104