Skip to content

Commit

Permalink
Merge pull request #22 from a-ignatov-parc/domquery-regex-fix
Browse files Browse the repository at this point in the history
Fixed trim regex
  • Loading branch information
a-ignatov-parc committed Jun 18, 2014
2 parents 7031488 + 7b17917 commit 2a34f9a
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 2a34f9a

Please sign in to comment.