CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-linkify-it

Links recognition library with FULL unicode support for detecting high-quality link patterns in plain text

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates the engineer's proficiency in using linkify-it's custom schema extension and multi-pass validation capabilities. The focus is on proper usage of the .add() method, custom validators with function definitions that receive (text, pos, self) parameters, and the correct implementation of validation logic that performs multi-stage checks.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "LinkifyIt instantiation",
      "description": "Creates an instance of LinkifyIt() constructor to build the validator",
      "max_score": 10
    },
    {
      "name": "add() method usage",
      "description": "Uses the .add(schema, definition) method to register custom schemas (repo:, ticket:, etc.)",
      "max_score": 15
    },
    {
      "name": "Regex validator",
      "description": "Implements at least one schema definition using a RegExp in the validate property (e.g., { validate: /pattern/ })",
      "max_score": 15
    },
    {
      "name": "Function validator",
      "description": "Implements at least one schema definition using a function validator with signature (text, pos, self)",
      "max_score": 20
    },
    {
      "name": "Multi-stage validation",
      "description": "Function validator performs multiple sequential checks (e.g., format check, then length check, then pattern matching) and returns appropriate length or 0",
      "max_score": 20
    },
    {
      "name": "test() method",
      "description": "Uses the .test(text) method to check if text contains valid links matching the custom schemas",
      "max_score": 10
    },
    {
      "name": "match() method",
      "description": "Uses the .match(text) method to extract match objects with schema, index, lastIndex, raw, and url properties",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-linkify-it

tile.json