Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/localekit/util/match/utils/common.ts>strictRegex

A translation plugin for Deno
Latest
function strictRegex
import { strictRegex } from "https://deno.land/x/localekit@2.2.0/util/match/utils/common.ts";

Creates a strict regular expression by concatenating the given parts with "^" at the beginning and "$" at the end.

Parameters

parts: string[]
  • An array of strings representing the parts of the regular expression.
optional
opts: string
  • Optional flags for the regular expression.

Returns

RegExp

A regular expression object.