(s)
| 2142 | |
| 2143 | // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript |
| 2144 | function unescapeFormat(s) { |
| 2145 | return s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { |
| 2146 | return p1 || p2 || p3 || p4; |
| 2147 | }).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); |
| 2148 | } |
| 2149 | |
| 2150 | var tokens = {}; |
| 2151 |
no outgoing calls
no test coverage detected