vendor/assets/javascripts/uikit/components/htmleditor.js in uikit2-rails-0.1.6 vs vendor/assets/javascripts/uikit/components/htmleditor.js in uikit2-rails-0.1.7
- old
+ new
@@ -1,6 +1,6 @@
-/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
+/*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
if (window.UIkit) {
@@ -204,12 +204,12 @@
(cursor.line > match.from.line && cursor.line < match.to.line) ||
(cursor.line === match.to.line && cursor.ch < match.to.ch);
}
};
- var result = callback(match, index);
+ var result = typeof(callback) === 'string' ? callback : callback(match, index);
- if (!result) {
+ if (!result && result !== '') {
return arguments[0];
}
index++;