Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
140
Issues
140
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
3d5af0f2
Unverified
Commit
3d5af0f2
authored
May 09, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NGRAMS] improve the highlighter casing
parent
f0a7e136
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
NgramsTable.purs
src/Gargantext/Components/NgramsTable.purs
+5
-3
No files found.
src/Gargantext/Components/NgramsTable.purs
View file @
3d5af0f2
...
@@ -239,11 +239,13 @@ highlightNgrams (NgramsTable table) input0 =
...
@@ -239,11 +239,13 @@ highlightNgrams (NgramsTable table) input0 =
Nothing ->
Nothing ->
crashWith "highlightNgrams: pattern missing from table"
crashWith "highlightNgrams: pattern missing from table"
Just (NgramsElement ne) ->
Just (NgramsElement ne) ->
let s1 = S.splitAt (i - i0) s in
let s1 = S.splitAt (i - i0) s
s2 = S.splitAt lpat s1.after in
-- s2.before and pat might differ by casing only!
{ i0: i + lpat
{ i0: i + lpat
, s:
S.drop lpat s1
.after
, s:
s2
.after
, l: Tuple " " Nothing :
, l: Tuple " " Nothing :
Tuple
pat
(Just ne.list) :
Tuple
s2.before
(Just ne.list) :
Tuple " " Nothing :
Tuple " " Nothing :
consNonEmpty (unsp s1.before) l
consNonEmpty (unsp s1.before) l
}
}
...
...
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