mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
fix(release): trigger a release to remove the print statment
This commit is contained in:
parent
7b1ad92d28
commit
fdb65c9dd7
2 changed files with 8 additions and 9 deletions
|
|
@ -90,3 +90,11 @@ djLint can use used as formatter in neovim using the `null-ls` plugin.
|
|||
|
||||
- [npm package](https://www.npmjs.com/package/coc-htmldjango)
|
||||
:::
|
||||
|
||||
## null-ls.nvim
|
||||
|
||||
::: content
|
||||
|
||||
- [GitHub repository](https://github.com/jose-elias-alvarez/null-ls.nvim)
|
||||
- [Lint](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/djlint.lua#L14)
|
||||
- [Format](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/djlint.lua#L13)
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
import regex as re
|
||||
|
||||
string = """<span title="{% if eev.status == eev.STATUS_CURRENT %} {% trans 'A' %} {% elif eev.status == eev.STATUS_APPROVED %} {% trans 'B' %} {% elif eev.status == eev.STATUS_EXPIRED %} {% trans 'C' %}{% endif %}" class="asdf {%if a%}b{%endif%} asdf" {%if a%}checked{%endif%}>"""
|
||||
|
||||
regex = r"""(?<!\n[ ]*?)\K(<span[ ]+?(
|
||||
(?:[^\s]+?=(?:\'(?:[^\']*?{%[^}]*?%}[^\']*?)+?\'))
|
||||
)\s*?>)"""
|
||||
|
||||
print(re.findall(regex, string, re.I | re.X))
|
||||
Loading…
Reference in a new issue