Skip to content

Commit

Permalink
Merge pull request #1113 from samchon/features/template
Browse files Browse the repository at this point in the history
Fix #1112: template literal type problem when type tag comes.
  • Loading branch information
samchon authored Jun 20, 2024
2 parents e0ce948 + a9e86d5 commit 517efcc
Show file tree
Hide file tree
Showing 41 changed files with 3,530 additions and 2,091 deletions.
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
"suppress-warnings": "^1.0.2",
"tstl": "^3.0.0",
"uuid": "^9.0.1",
"typia": "../typia-6.1.2.tgz"
"typia": "../typia-6.2.0.tgz"
}
}
4 changes: 4 additions & 0 deletions debug/assets/template.is.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
input => {
const $io0 = input => "string" === typeof input.pure && (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\/[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.pure) || RegExp(/(.*)\x2d(.*)/).test(input.pure)) && ("string" === typeof input.sole && RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\/[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.sole)) && ("string" === typeof input.union && (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\/[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.union) || RegExp(/(.*)\x2d(.*)/).test(input.union))) && ("string" === typeof input.mixed && (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\/[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.mixed) || RegExp(/(.*)\x2d(.*)/).test(input.mixed) || RegExp(/(.*)\|\|[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.mixed))) && (null !== input.boolean_and_number_and_template && undefined !== input.boolean_and_number_and_template && ("number" === typeof input.boolean_and_number_and_template || "boolean" === typeof input.boolean_and_number_and_template || "string" === typeof input.boolean_and_number_and_template && RegExp(/^prefix_(.*)/).test(input.boolean_and_number_and_template)));
return "object" === typeof input && null !== input && $io0(input);
}
Loading

0 comments on commit 517efcc

Please sign in to comment.