Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Provide method of escaping values containing `lookup` identifiers

Aperta
#14 5 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@mdeltito ci sta già lavorando.

Dal 18/6/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement good first issue help wanted

This is an edge case (and there are ways around it) but consider the following example of a value that starts with a #:

function myAction(opts) {
  return this.lookup(opts)
}

chain
  .myAction({
    id: '!random'
  , color: '#cccccc' 
  })

A couple of options offhand would be:

  • Introduce a control character to escape e.g. \#foo, \!bar
  • Provide a built-in function that just reflects the value e.g. !literal("#ccc")
    • At minimum this is a viable workaround, since quoted function arguments do not pass through lookup
Lingua principale
JavaScript
Stelle
3
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.