Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions manifests/micro-utilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,12 @@
"description": "You can split a string into lines using a regular expression.",
"example": "const splitLines = (str) => str.split(/\\r?\\n/);"
},
"snippet::strip-bom": {
"id": "snippet::strip-bom",
"type": "simple",
"description": "You can check if the first character of the string is the BOM and strip it using `String.prototype.slice` if it is.",
"example": "str.charCodeAt(0) === 0xFEFF ? str.slice(1) : str;"
},
"snippet::to-lower": {
"id": "snippet::to-lower",
"type": "simple",
Expand Down Expand Up @@ -774,6 +780,16 @@
"moduleName": "split-lines",
"replacements": ["snippet::split-lines"]
},
"strip-bom": {
"type": "module",
"moduleName": "strip-bom",
"replacements": ["snippet::strip-bom"]
},
"strip-bom-string": {
"type": "module",
"moduleName": "strip-bom-string",
"replacements": ["snippet::strip-bom"]
},
"toarray": {
"type": "module",
"moduleName": "toarray",
Expand Down