From 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 23 Feb 2023 19:34:56 +0100 Subject: Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated) --- .../dist/string-trim-spaces-only.umd.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js (limited to 'includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js') diff --git a/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js b/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js new file mode 100644 index 0000000..c7e8716 --- /dev/null +++ b/includes/external/school/node_modules/string-trim-spaces-only/dist/string-trim-spaces-only.umd.js @@ -0,0 +1,10 @@ +/** + * @name string-trim-spaces-only + * @fileoverview Like String.trim() but you can choose granularly what to trim + * @version 3.1.0 + * @author Roy Revelt, Codsen Ltd + * @license MIT + * {@link https://codsen.com/os/string-trim-spaces-only/} + */ + +!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).stringTrimSpacesOnly={})}(this,(function(e){"use strict";const n={classicTrim:!1,cr:!1,lf:!1,tab:!1,space:!0,nbsp:!1};e.defaults=n,e.trimSpaces=function(e,t){if("string"!=typeof e)throw new Error(`string-trim-spaces-only: [THROW_ID_01] input must be string! It was given as ${typeof e}, equal to:\n${JSON.stringify(e,null,4)}`);const s={...n,...t};function r(e){return s.classicTrim&&!e.trim()||!s.classicTrim&&(s.space&&" "===e||s.cr&&"\r"===e||s.lf&&"\n"===e||s.tab&&"\t"===e||s.nbsp&&" "===e)}let i,l;if(e.length){if(r(e[0]))for(let n=0,t=e.length;n