Skip to content

Commit

Permalink
optional newline in regex (daemon changed)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbenet committed Aug 20, 2015
1 parent ffdb0b2 commit e27f6a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions webapps/tree-ltr/all-versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
QmdQRGbijGYBe8u29Gd7LkxgC4dCVcbGALe2dQ3r1kRdzY
QmVppgFNC8TCJg3zJmSebFtZAJRSw1pS8seuYVstbzEW78
2 changes: 1 addition & 1 deletion webapps/tree-ltr/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ render = (hash) ->
data = xhr.responseText
tree = {}

refApiPattern = /"Ref": "(\S+) (\S+) (\S+)\\n"/g
refApiPattern = /"Ref": "(\S+) (\S+) (\S+)[\\n]?"/g
while match = refApiPattern.exec data
[whole, src, dst, linkname] = match
tree[src] ?= []
Expand Down
2 changes: 1 addition & 1 deletion webapps/tree-ltr/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webapps/tree-ltr/latest-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
QmdQRGbijGYBe8u29Gd7LkxgC4dCVcbGALe2dQ3r1kRdzY
QmVppgFNC8TCJg3zJmSebFtZAJRSw1pS8seuYVstbzEW78

0 comments on commit e27f6a4

Please sign in to comment.