Commit 49b6d010 authored by Thimo Kraemer's avatar Thimo Kraemer

Changed regex to allow digits and hyphens in event names

parent 435a8131
/*
* KSS-RPC v0.24-beta
* KSS-RPC v0.25-beta
*
* Copyright (c) 2017, joonis new media
* Author: Thimo Kraemer <thimo.kraemer@joonis.de>
......@@ -61,7 +61,7 @@
******************************************************************************************/
var kss = {
version: '0.24-beta',
version: '0.25-beta',
_initialized: false,
_ruleSheets: {},
_nodeRegister: {},
......@@ -1659,7 +1659,7 @@ kss.Parser.prototype = {
var ret = [];
// Check for events
for (var i=0; i<sel.length; i++) {
m = sel[i].match(/^\s*(.+)\s*:\s*([a-z]+)\s*$/);
m = sel[i].match(/^\s*(.+)\s*:\s*([a-z0-9_-]+)\s*$/);
if (!m) this.error('selector "' + sel[i] + '" missing event');
else ret.push({selector: m[1], event: m[2]});
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment