Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed May 27, 2024
1 parent 4f94e25 commit 9f07c68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers_table-name.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-pg
*/
function _TN(path, ...args) {
if (Array.isArray(path) &amp;&amp; path.raw) {
path = path.map((b, i) => b + (i &lt; args.length ? args[i] ?? '' : '')).join('');
const v = i => i &lt; args.length ? args[i] ?? '' : '';
path = path.reduce((a, c, i) => a + c + v(i), '');
} // else 'path' is a string
const [schema, table] = path.split('.');
if (table === undefined) {
Expand Down

0 comments on commit 9f07c68

Please sign in to comment.