1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 23:44:11 +01:00

Fix n_~. Closes issue #68.

This commit is contained in:
Kris Maglione
2010-10-11 15:34:51 -04:00
parent 577b8e3639
commit f4ddaafb9e
3 changed files with 3 additions and 3 deletions

View File

@@ -893,7 +893,7 @@ const Dactyl = Module("dactyl", {
urls = [str];
return urls.map(function (url) {
if (/^(\.{0,2}|~)\//.test(url)) {
if (/^(\.{0,2}|~)(\/|$)/.test(url)) {
try {
// Try to find a matching file.
let file = io.File(url);