aboutsummaryrefslogtreecommitdiffstats
path: root/stella.js
diff options
context:
space:
mode:
authordrry2008-11-23 21:08:10 +0000
committerdrry2008-11-23 21:08:10 +0000
commit0687798706c98c3fa09ddc37f7930f76ec057c49 (patch)
tree7098379e50cf36b96652eafbc5ec2a510ee58c40 /stella.js
parent8f9b86ff7218860b8c10ffcdd7e7a061d9311958 (diff)
downloadvimperator-plugins-0687798706c98c3fa09ddc37f7930f76ec057c49.tar.bz2
* fixed regexes.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24718 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'stella.js')
-rw-r--r--stella.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/stella.js b/stella.js
index 37e1185..6b6771f 100644
--- a/stella.js
+++ b/stella.js
@@ -51,7 +51,7 @@
function () f.apply(_this, arguments);
function capitalize (s)
- s.replace(/^./, String.toUpperCase);
+ s.replace(/^[a-z]/, String.toUpperCase);
// }}}
@@ -82,7 +82,7 @@
play: '',
pause: '',
muted: '',
- repeating: '',
+ repeating: ''
},
icon: null,
@@ -160,7 +160,7 @@
play: 'x',
pause: 'x',
muted: 'rwt',
- repeating: 'rw',
+ repeating: 'rw'
},
toggles: ['muted'],
@@ -286,7 +286,7 @@
const ContextMenuVolume = [];
for (let i = 0; i <= 100; i += 10)
- ContextMenuVolume.push({name: 'setVolume', label: i + '%', attributes: {volume: i}})
+ ContextMenuVolume.push({name: 'setVolume', label: i + '%', attributes: {volume: i}})
const ContextMenuTree = [
'play',