JSPM

@comunica/actor-function-factory-term-regex

4.4.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2526
  • Score
    100M100P100Q143886F
  • License MIT

A term-regex function-factory actor

Package Exports

  • @comunica/actor-function-factory-term-regex
  • @comunica/actor-function-factory-term-regex/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@comunica/actor-function-factory-term-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Comunica Term Function Regex Function Factory Actor

npm version

A function factory actor that constructs a term function capable of evaluating the Regex function. The regex evaluation uses the JavaScript regex engine in 'unicode-mode' thereby eliminating Annex B behavior. The x and q flag not present in the JS engine are implemented by preprocessing of the pattern. As a result of using the JS regex engine, the bundle size of this package is small, but some non-spec compliant edge cases are present. Examples are the skipped tests in op.regex-test.ts.

This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.

Click here if you just want to query with Comunica.

Install

$ yarn add @comunica/actor-function-factory-term-regex

Configure

After installing, this package can be added to your engine's configuration as follows:

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-term-regex/^4.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:function-factory/actors#term-function-regex",
      "@type": "ActorFunctionFactoryTermRegex"
    }
  ]
}