Skip to content

Commit

Permalink
fix: number value convertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonny-me committed May 14, 2022
1 parent 34cf4b5 commit 4ee4ff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const generateFile = (data, basePath) => {
};

const formatValue = (input) => {
var input = String(input)
var input = input.replace(/'/g, '\\\'')
input = input.replace(/&/g, '&')
input = input.replace(/"/g, '\\\"')
Expand Down
1 change: 1 addition & 0 deletions src/lib/ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const generateFile = (data, basePath) => {
};

const formatValue = (input) => {
var input = String(input)
var input = input.replace(/"/g, '\\\"')
input = input.replace(/%s/g, '%@')
return input
Expand Down

0 comments on commit 4ee4ff8

Please sign in to comment.