mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 17:41:40 +02:00
🐛 Add underscore as posible name character (#6135)
This commit is contained in:
parent
a6133e9c48
commit
e81adb241b
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@
|
||||||
(token-types t))
|
(token-types t))
|
||||||
|
|
||||||
(def token-name-ref
|
(def token-name-ref
|
||||||
[:and :string [:re #"^(?!\$)([a-zA-Z0-9-$]+\.?)*(?<!\.)$"]])
|
[:and :string [:re #"^(?!\$)([a-zA-Z0-9-$_]+\.?)*(?<!\.)$"]])
|
||||||
|
|
||||||
(defn valid-token-name-ref?
|
(defn valid-token-name-ref?
|
||||||
[n]
|
[n]
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
Caution: This will allow a trailing dot like `token-name.`,
|
Caution: This will allow a trailing dot like `token-name.`,
|
||||||
But we will trim that in the `finalize-name`,
|
But we will trim that in the `finalize-name`,
|
||||||
to not throw too many errors while the user is editing."
|
to not throw too many errors while the user is editing."
|
||||||
#"(?!\$)([a-zA-Z0-9-$]+\.?)*")
|
#"(?!\$)([a-zA-Z0-9-$_]+\.?)*")
|
||||||
|
|
||||||
(def valid-token-name-schema
|
(def valid-token-name-schema
|
||||||
(m/-simple-schema
|
(m/-simple-schema
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue