UNPKG

next-csrf

Version:

CSRF mitigation library for Next.js

11 lines (7 loc) 193 B
"use strict"; var pattern = /[\f\n\r\t\v ]{2,}/g; var replacement = " "; var normalize = function normalize(str) { return str.replace(pattern, replacement); }; module.exports = normalize;