use String.match instead of RegExp.exec to capture uri fragments
Merge pull request #24 from rikukissa/master

use String.match instead of RegExp.exec to capture uri fragments