(symbol)
| 365 | var value; |
| 366 | |
| 367 | var getMatch = (symbol) => { |
| 368 | var pos = capture.indexOf(symbol); |
| 369 | // check if symbol appears in regexp |
| 370 | if (pos >= 0) { |
| 371 | // return matched value or null (falsy!) for non-matches |
| 372 | return matches[pos+1]; |
| 373 | } |
| 374 | return; |
| 375 | }; |
| 376 | |
| 377 | // seconds |
| 378 | if ((value=getMatch('S'))) { |