Skip to content
View in the app

A better way to browse. Learn more.

MagicDuel Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CTC Chat Transform is overly optimistic

Featured Replies

Currently, entering "CTC" into the chat transforms it into "Creature Transfer Code: CTC". This is way overly optimistic, and will trigger on phrases such as "CTC sent". 

 

 

The transform should instead check that CTC is followed by "[0-9]+[A-Z]{5}[0-9]{2}" (in the form of a regex)

 

The reason I do not suggest that it check for the presence of "MDC" is because a partial CTC, such as what is used to check information about the creature via clickables, should still be transformed.

 

 

 

The ITC (Item Transfer Code) and ATC (Avatar Transfer Code) transforms also suffer from the same problem, and can be solved with the same regex solution.

  • Author

The full CTC does not, yes, but the initial part, before MDC does. I believe that partial CTCs, such as is used for checking information on the creature via clickables, should still be highlighted, which is why I suggested that pattern. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Forum Statistics

  • Total Topics 17.5k
  • Total Posts 182.2k

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.