diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-28 17:51:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-02 17:31:36 -0700 |
commit | 911c1520b1253dcec525da333c83b0c96dd7038b (patch) | |
tree | 6152c4781f636ac0b3fe0a3822824fdc1f8988d9 /src/parseTools.js | |
parent | d0ec198469a05fa4b8e024af8615fb890b89a471 (diff) |
remove unnecessary function param coercion parens
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index e88cafd6..d749fb0a 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -2553,3 +2553,8 @@ function parseAlign(text) { // parse ", align \d+" return parseInt(text.substr(8)); } +function deParen(text) { + if (text[0] === '(') return text.substr(1, text.length-2); + return text; +} + |