LoginSignup
1
0

More than 5 years have passed since last update.

Mautic のエイリアスの仕組み

Last updated at Posted at 2017-11-17

Mautic 2.11.0 で確認

実際のコード

動作

  • 全角文字であれば、ライブラリーで中国語の読みに変換
  • 英数字のみ取り出す
  • スペースは下線 (_) に変換
  • 小文字に変換
  • エイリアスが空白だったらとにかく、5文字ぐらいのランダムな英小文字のエイリアスを作成する
  • エイリアスが許容する最大の文字数が設定されていたらそこまで文字をカットする
  • 最後に下線 (_) が入っていたらカットする
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0