elzup/tequery

Strict query

Closed this issue · 0 comments

elzup commented

Why

current replacement is invalid.
ex. META char in string literall (query "hoge@$".replace(/[@$]/g, "_"))

What

  • remove prepare replacement
    • "call@" shorthand
      • if result type function bind $text
    • META char change to strict code variable char
      • from @ to $(, alias $t, $text) or t or _ or _t
      • from $ to $$ (, alias $l, $line)
  • using AST for replacement