You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case I'm processing strings and doing colors("%{red}" .. subject). Would it be possible to pre-process my variables to avoid the problem? I've tried colors("%{red}\%{example}") and colors(%{red}%%{example}"), but both seem to attempt to dereference example.
The text was updated successfully, but these errors were encountered:
darac
changed the title
Possibilitty to escape %{} sequences?
Possibility to escape %{} sequences?
Jan 11, 2025
If the string passed to
colors()
contains%{...}
sequences which aren't colours, then an exception is thrown:In my case I'm processing strings and doing
colors("%{red}" .. subject)
. Would it be possible to pre-process my variables to avoid the problem? I've triedcolors("%{red}\%{example}")
andcolors(%{red}%%{example}")
, but both seem to attempt to dereferenceexample
.The text was updated successfully, but these errors were encountered: