Skip to content

Commit

Permalink
Fixed trim regex
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ignatov-parc committed Jun 12, 2014
1 parent 7031488 commit 7b17917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/dom.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b17917

Please sign in to comment.