mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 07:32:26 +01:00
Convert expression closures to arrow syntax.
This commit is contained in:
@@ -245,7 +245,7 @@ var StatusLine = Module("statusline", {
|
||||
url = _("buffer.noName");
|
||||
}
|
||||
else {
|
||||
url = url.replace(RegExp("^dactyl://help/(\\S+)#(.*)"), function (m, n1, n2) n1 + " " + decodeURIComponent(n2) + " " + _("buffer.help"))
|
||||
url = url.replace(RegExp("^dactyl://help/(\\S+)#(.*)"), (m, n1, n2) => n1 + " " + decodeURIComponent(n2) + " " + _("buffer.help"))
|
||||
.replace(RegExp("^dactyl://help/(\\S+)"), "$1 " + _("buffer.help"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user