Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
bbe66d21
Commit
bbe66d21
authored
Oct 20, 2020
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#39714 andやor検索(ウェブ版error処理)
parent
d040f423
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
abvw/js/contentview.js
+14
-2
No files found.
abvw/js/contentview.js
View file @
bbe66d21
...
...
@@ -747,7 +747,7 @@ CONTENTVIEW.searchHandle = function() {
//seperate string
var
myRegexp
=
/
[^\s
"
]
+|"
([^
"
]
*
)
"/gi
;
var
myArray
=
[];
var
myQuery
=
'myRegExpArr[0].test(contentPage[nIndex].pageText)'
;
var
myQuery
;
var
myRegExpArr
=
[];
do
{
...
...
@@ -758,7 +758,19 @@ CONTENTVIEW.searchHandle = function() {
}
}
while
(
match
!=
null
);
myRegExpArr
[
0
]
=
new
RegExp
(
myArray
[
0
]);
if
(
myArray
[
0
].
charAt
(
0
)
==
"("
){
if
(
myArray
[
0
]
==
"("
){
myRegExpArr
[
1
]
=
new
RegExp
(
myArray
[
1
]);
myQuery
=
'( myRegExpArr[1].test(contentPage[nIndex].pageText)'
;
}
else
{
myRegExpArr
[
0
]
=
new
RegExp
(
myArray
[
0
].
slice
(
1
));
myQuery
=
'( myRegExpArr[0].test(contentPage[nIndex].pageText)'
}
}
else
{
myRegExpArr
[
0
]
=
new
RegExp
(
myArray
[
0
]);
myQuery
=
'myRegExpArr[0].test(contentPage[nIndex].pageText)'
;
}
for
(
var
i
=
1
;
i
<
myArray
.
length
;
i
++
){
if
(
myArray
[
i
]
==
"OR"
||
myArray
[
i
]
==
"or"
){
myRegExpArr
[
i
]
=
new
RegExp
(
myArray
[
i
]);
...
...
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