NotRanged / NotRanged.github.io

Web frontend for FFXIV Crafting Optimizer service.
zlib License
73 stars 43 forks source link

Allow unquoted ability names when importing macros #79

Closed jfarmer closed 1 year ago

jfarmer commented 1 year ago

Currently, ability names have to be quoted when importing macros. However, websites like TeamCraft only include quotes when they're required, which is how it also works in-game.

This patch changes the ability-detecting regex so that it can detect abilities with and without quotes.

For example, this now imports correctly:

/ac Reflect <wait.3>
/ac "Master's Mend" <wait.3>
/ac "Waste Not II" <wait.2>
/ac Innovation <wait.2>
/ac "Preparatory Touch" <wait.3>
/ac "Preparatory Touch" <wait.3>
/ac "Delicate Synthesis" <wait.3>
/ac "Byregot's Blessing" <wait.3>
/ac Groundwork <wait.3>