From 7b179171d17dcdb14c494f2b99c80be3a0548a63 Mon Sep 17 00:00:00 2001 From: Anton Ignatov Date: Thu, 12 Jun 2014 23:58:34 +0400 Subject: [PATCH] Fixed trim regex --- app/client/dom.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/dom.coffee b/app/client/dom.coffee index b22e8a7..ef97628 100644 --- a/app/client/dom.coffee +++ b/app/client/dom.coffee @@ -190,7 +190,7 @@ define ["utils/guid", "lib/domReady", "underscore"], (guid, domReady, _) -> if this instanceof domQuery return selector if selector instanceof domQuery if _.isString(selector) - selector = selector.replace /^\s+|\s+$/, "" + selector = selector.replace /^\s+|\s+$/g, "" if selector.charAt(0) is "<" and selector.charAt(selector.length - 1) is ">" and selector.length >= 3 elements = parseHtml selector else