(code, script_path)
| 240 | } |
| 241 | |
| 242 | function buildLanguageURL(code, script_path) { |
| 243 | if (/\.json$/.test(code)) { |
| 244 | var url = code; |
| 245 | } else { |
| 246 | var fragment = "/locale/" + code + ".json"; |
| 247 | if (/\/$/.test(script_path)) { fragment = fragment.substr(1); } |
| 248 | var url = script_path + fragment; |
| 249 | } |
| 250 | return url; |
| 251 | } |
| 252 | |
| 253 | function formatNumber(val, mask) { |
| 254 | if (mask.match(/%(\.(\d+))?f/)) { |
no outgoing calls
no test coverage detected