UNPKG

typopo

Version:

Fix frequent microtypography errors in multiple languages. Write neat texts without bothering about typography rules. Typopo works for English, German, Slovak, Czech and Rusyn language.

22 lines (16 loc) 509 B
import { base } from "../../src/const.js"; // Utility to debug regex patterns function debugRegexPattern(patternParts, flags = "g") { const pattern = patternParts.join(""); const regex = new RegExp(pattern, flags); console.log("=".repeat(50)); console.log("Pattern parts:", patternParts); console.log("Combined:", pattern); console.log("Regex:", regex); console.log("Source:", regex.source); return regex; } const pattern = [ /*place regex pattern*/ ]; debugRegexPattern(pattern, "g");