diff options
Diffstat (limited to 'src/nxt_tstr.h')
-rw-r--r-- | src/nxt_tstr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_tstr.h b/src/nxt_tstr.h index 8e3cdb93..7fb02631 100644 --- a/src/nxt_tstr.h +++ b/src/nxt_tstr.h @@ -64,6 +64,10 @@ nxt_int_t nxt_tstr_query(nxt_task_t *task, nxt_tstr_query_t *query, void nxt_tstr_query_release(nxt_tstr_query_t *query); +#define nxt_tstr_is_js(str) \ + nxt_strchr_start(str, '`') + + nxt_inline nxt_bool_t nxt_is_tstr(nxt_str_t *str) { |