react-json-friendly-viewer
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -54,3 +54,3 @@ "use strict"; | ||
} | ||
const sentence = camelCaseText.replace(/([a-z])([A-Z][a-z])/g, "$1 $2").replace(/([A-Z][a-z])([A-Z])/g, "$1 $2").replace(/([a-z])([A-Z]+[a-z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z][a-z])/g, "$1 $2").replace(/([a-z]+)([A-Z0-9]+)/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z][a-z]*)/g, "$1 $2").replace(/([0-9])([A-Z][a-z]+)/g, "$1 $2").replace(/([A-Z]{2,})([0-9]{2,})/g, "$1 $2").replace(/([0-9]{2,})([A-Z]{2,})/g, "$1 $2").trim(); | ||
const sentence = camelCaseText.replace(/([a-z])([A-Z][a-z])/g, "$1 $2").replace(/([A-Z][a-z])([A-Z])/g, "$1 $2").replace(/([a-z])([A-Z]+[a-z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z][a-z])/g, "$1 $2").replace(/([a-z]+)([A-Z0-9]+)/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z][a-z]*)/g, "$1 $2").replace(/([0-9])([A-Z][a-z]+)/g, "$1 $2").replace(/([A-Z]{2,})([0-9]{2,})/g, "$1 $2").replace(/([0-9]{2,})([A-Z]{2,})/g, "$1 $2").replace(/\bid\b/ig, "ID").trim(); | ||
return sentence && sentence.charAt(0).toUpperCase() + sentence.substring(1).toLowerCase(); | ||
@@ -57,0 +57,0 @@ }; |
@@ -54,3 +54,3 @@ "use strict"; | ||
} | ||
const sentence = camelCaseText.replace(/([a-z])([A-Z][a-z])/g, "$1 $2").replace(/([A-Z][a-z])([A-Z])/g, "$1 $2").replace(/([a-z])([A-Z]+[a-z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z][a-z])/g, "$1 $2").replace(/([a-z]+)([A-Z0-9]+)/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z][a-z]*)/g, "$1 $2").replace(/([0-9])([A-Z][a-z]+)/g, "$1 $2").replace(/([A-Z]{2,})([0-9]{2,})/g, "$1 $2").replace(/([0-9]{2,})([A-Z]{2,})/g, "$1 $2").trim(); | ||
const sentence = camelCaseText.replace(/([a-z])([A-Z][a-z])/g, "$1 $2").replace(/([A-Z][a-z])([A-Z])/g, "$1 $2").replace(/([a-z])([A-Z]+[a-z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z][a-z])/g, "$1 $2").replace(/([a-z]+)([A-Z0-9]+)/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z][a-z]*)/g, "$1 $2").replace(/([0-9])([A-Z][a-z]+)/g, "$1 $2").replace(/([A-Z]{2,})([0-9]{2,})/g, "$1 $2").replace(/([0-9]{2,})([A-Z]{2,})/g, "$1 $2").replace(/\bid\b/ig, "ID").trim(); | ||
return sentence && sentence.charAt(0).toUpperCase() + sentence.substring(1).toLowerCase(); | ||
@@ -57,0 +57,0 @@ }; |
{ | ||
"name": "react-json-friendly-viewer", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
126295