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-9/

{
  "context": "This criteria evaluates how well the engineer uses linkify-it's matchAtStart() method to detect fully-formed links at the beginning of strings. The focus is on correct usage of the package's match-at-start detection capability, including proper handling of the return value and extraction of link properties.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses matchAtStart()",
      "description": "The implementation calls the matchAtStart() method from linkify-it to check for links at the string start",
      "max_score": 30
    },
    {
      "name": "Instantiates linkify-it",
      "description": "The implementation properly creates a linkify-it instance (e.g., using LinkifyIt() constructor or require('linkify-it')())",
      "max_score": 15
    },
    {
      "name": "Handles matchAtStart() return",
      "description": "The implementation correctly handles the return value from matchAtStart(), which returns a Match object if a link is found at the start, or null if not",
      "max_score": 20
    },
    {
      "name": "Extracts schema property",
      "description": "The implementation accesses the schema property from the Match object returned by matchAtStart()",
      "max_score": 10
    },
    {
      "name": "Extracts url property",
      "description": "The implementation accesses the url property from the Match object returned by matchAtStart()",
      "max_score": 10
    },
    {
      "name": "Extracts raw property",
      "description": "The implementation accesses the raw property from the Match object returned by matchAtStart()",
      "max_score": 10
    },
    {
      "name": "Validates fully-formed links",
      "description": "The implementation correctly distinguishes between fully-formed links (with protocol) and fuzzy links (without protocol), as matchAtStart() only matches fully-formed links",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-linkify-it

tile.json