chore: apply review suggestions

* pref: optimize `common` rules and matchers
* chore: rename diagrams services to short form
* chore: sort imports
This commit is contained in:
Reda Al Sulais
2023-09-07 00:00:38 +03:00
parent 795baedbb1
commit 24d43849a0
22 changed files with 165 additions and 188 deletions

View File

@@ -0,0 +1,14 @@
/**
* Matches single and multi line accessible description
*/
export const accessibilityDescrRegex = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/;
/**
* Matches single line accessible title
*/
export const accessibilityTitleRegex = /accTitle[\t ]*:([^\n\r]*)/;
/**
* Matches a single line title
*/
export const titleRegex = /title([\t ][^\n\r]*|)/;