Commit 09c8fefd authored by Sven Franck's avatar Sven Franck

moved some functionalities into factory

parent 240d6267
......@@ -341,15 +341,7 @@ var priv = {};
/**
* Filter a string for a class name
* @method filterForClass
* @param {string} class The string to filter
* @return {object} regex
*/
priv.filterForClass = function (className) {
return new RegExp("(?:^|\\s)" + className + "(?!\\S)", "g");
};
/**
* Replace substrings to another strings
......
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