Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
d95a2f0f
Commit
d95a2f0f
authored
Apr 04, 2013
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bump dom_text_matcher to 496e64b
parent
579cb7b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
dom_text_matcher.coffee
h/lib/dom_text_matcher.coffee
+8
-2
No files found.
h/lib/dom_text_matcher.coffee
View file @
d95a2f0f
...
...
@@ -197,7 +197,10 @@ class window.DomTextMatcher
analysis
.
exact
or
# "Found text matches exactly to pattern"
(
analysis
.
comparison
.
errorLevel
<=
matchThreshold
)
# still acceptable
mappings
=
@
mapper
.
getMappingsForCharRange
prefixEnd
,
suffixStart
match
=
$
.
extend
{},
charRange
,
analysis
,
mappings
match
=
{}
for
obj
in
[
charRange
,
analysis
,
mappings
]
for
k
,
v
of
obj
match
[
k
]
=
v
return
matches
:
[
match
]
# console.log "Rejecting the match, because error level is too high. (" +
...
...
@@ -253,7 +256,10 @@ class window.DomTextMatcher
analysis
=
@
analyzeMatch
pattern
,
textMatch
,
fuzzyComparison
mappings
=
@
mapper
.
getMappingsForCharRange
textMatch
.
start
,
textMatch
.
end
match
=
$
.
extend
{},
textMatch
,
analysis
,
mappings
match
=
{}
for
obj
in
[
charRange
,
analysis
,
mappings
]
for
k
,
v
of
obj
match
[
k
]
=
v
matches
.
push
match
null
t3
=
@
timestamp
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment