From 954583f3d56fbfb60321725f13ad092e536e3737 Mon Sep 17 00:00:00 2001
From: Marvin Borner
Date: Wed, 7 Nov 2018 22:10:16 +0100
Subject: Removed node_modules
---
node_modules/locutus/php/strings/nl2br.js | 34 -------------------------------
1 file changed, 34 deletions(-)
delete mode 100644 node_modules/locutus/php/strings/nl2br.js
(limited to 'node_modules/locutus/php/strings/nl2br.js')
diff --git a/node_modules/locutus/php/strings/nl2br.js b/node_modules/locutus/php/strings/nl2br.js
deleted file mode 100644
index d740445..0000000
--- a/node_modules/locutus/php/strings/nl2br.js
+++ /dev/null
@@ -1,34 +0,0 @@
-'use strict';
-
-module.exports = function nl2br(str, isXhtml) {
- // discuss at: http://locutus.io/php/nl2br/
- // original by: Kevin van Zonneveld (http://kvz.io)
- // improved by: Philip Peterson
- // improved by: Onno Marsman (https://twitter.com/onnomarsman)
- // improved by: Atli Þór
- // improved by: Brett Zamir (http://brett-zamir.me)
- // improved by: Maximusya
- // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
- // bugfixed by: Kevin van Zonneveld (http://kvz.io)
- // bugfixed by: Reynier de la Rosa (http://scriptinside.blogspot.com.es/)
- // input by: Brett Zamir (http://brett-zamir.me)
- // example 1: nl2br('Kevin\nvan\nZonneveld')
- // returns 1: 'Kevin
\nvan
\nZonneveld'
- // example 2: nl2br("\nOne\nTwo\n\nThree\n", false)
- // returns 2: '
\nOne
\nTwo
\n
\nThree
\n'
- // example 3: nl2br("\nOne\nTwo\n\nThree\n", true)
- // returns 3: '
\nOne
\nTwo
\n
\nThree
\n'
- // example 4: nl2br(null)
- // returns 4: ''
-
- // Some latest browsers when str is null return and unexpected null value
- if (typeof str === 'undefined' || str === null) {
- return '';
- }
-
- // Adjust comment to avoid issue on locutus.io display
- var breakTag = isXhtml || typeof isXhtml === 'undefined' ? '
' : '
';
-
- return (str + '').replace(/(\r\n|\n\r|\r|\n)/g, breakTag + '$1');
-};
-//# sourceMappingURL=nl2br.js.map
\ No newline at end of file
--
cgit v1.2.3