Skip to content

Commit

Permalink
Changed package name
Browse files Browse the repository at this point in the history
* standard fixes (at some point I'm going to drop standard)
  • Loading branch information
rijnhard committed May 24, 2018
1 parent d3eb579 commit 4f17dbd
Show file tree
Hide file tree
Showing 5 changed files with 3,716 additions and 2,790 deletions.
6 changes: 3 additions & 3 deletions ini.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function dotSplit (str) {
.replace(/\\\./g, '\u0001')
.split(/\./).map(function (part) {
return part.replace(/\1/g, '\\.')
.replace(/\2LITERAL\\1LITERAL\2/g, '\u0001')
.replace(/\2LITERAL\\1LITERAL\2/g, '\u0001')
})
}

Expand Down Expand Up @@ -177,8 +177,8 @@ function safe (val) {
(val.length > 1 &&
isQuoted(val)) ||
val !== val.trim())
? JSON.stringify(val)
: val.replace(/;/g, '\\;').replace(/#/g, '\\#')
? JSON.stringify(val)
: val.replace(/;/g, '\\;').replace(/#/g, '\\#')
}

function unsafe (val, doUnesc) {
Expand Down
Loading

0 comments on commit 4f17dbd

Please sign in to comment.